It would seem that what you are trying to use for the Java executable is not correct. You path should include $JAVA_HOME/bin so that the correct version of Java is being used. The commands seem to be looking for /bin/java and that could be a link to nowhere.
The way some of the replies to the commands trying to interpret the JAVA_HOME variable make me wonder if there aren't some hidden characters in there that don't display, but are passed to the different commands.
Try resetting the the JAVA_HOME variable from the current command line by manually typing