Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.1
-
None
-
None
-
Linux 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64 GNU/Linux
Description
I have openJDK11 installed on my PATH in linux. Setting JAVA_HOME to my openJDK8 directory, I run samples/axis2Server/axis2Server.sh and it complains that -Djava.endorsedDirs is invalid and I need to use modules. It is actually running java from the openJDK11 installation that it found on the PATH.
The last line of axis2Server.sh is calling java without any directory qualifying it. I see that this is fixed in bin/synapse.sh. When I changed this in the sample axis2Server.sh, it ran fine.
The last command in the script was like:
java .....
It should be:
$JAVA_HOME/bin/java ....