I am trying to set up Glassfish 5 on my Xubuntu machine. I unzipped the downloaded archive to /opt/java/ . Now to set it up:
That is all the output I get. I am pretty sure that means that it can't find
java, but I don't know where the issue lies. I installed Java 11 at /opt/java/, so that I have /opt/java/jdk-11.0.4/. I set up the global environment variable JAVA_HOME to point to this directory in /etc/environment.
Maven finds java correctly, and running "java --version" gives the correct output. Running "which java" prints out "/opt/java/jdk-11.0.4/bin//java".
The shell script "asadmin" I am trying to run is below:
It makes a note "Depends upon Java from ../config/asenv.conf", but I don't know enough bash to tell how it works.
How can I resolve this issue? It is probably something stupid from my side, but I would appreciate some help.