I am unable to start my glassfish server in ubuntu 16. The error I am seeing is "GlassFish requires Java SE version 6. Your JDK is version 0"
Now here are my settings :
JAVA_HOME : /usr/lib/jvm/java-9-oracle
Entry in asenv.conf : AS_JAVA=/usr/lib/jvm/java-9-oracle
java -version : java version 9.0.4
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
I have mentioned Java home in the asenv, still glassfish is not recognizing and throwing error. What configuration I need to do to get my glassfish working.