remove error stop from java and make versions

Signed-off-by: cj360 <ayunker551@gmail.com>

rm extra endif

Signed-off-by: cj360 <ayunker551@gmail.com>