JAVA must still be $JAVA_HOME/bin/java.
Add "-d64" to the OPTS.
Adding "-d64" seems to be cleaner way to use the 64 bit jvm
instead of the procedure that I applied but it didn't solve my
"Caused by: java.lang.NoClassDefFoundError" exception.
The problem was solved after increasing the value for -XX:PermSize