How can I run an application with a specific Java version? I have three Java versions intstalled:
myuser@mysystem:~$ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 auto mode
* 1 /opt/jdk-9.0.4/bin/java 1 manual mode
2 /opt/jdk1.8.0_162/bin/java 1 manual mode
3 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
I have Java 9 set as default and I'd like to keep it that way. Still, an application named pdfsam
doesn't seem to work properly with Java 9. What command is necessary to run it with openjdk (option 3)?
0 Answers