Code: Select all
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
Any ideas what's going on here?
Code: Select all
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
Code: Select all
ls -l /usr/bin/java /usr/bin/javaws
Code: Select all
ls -l /etc/alternatives/java /etc/alternatives/javaws
Code: Select all
dpkg --list openjdk-8* icedtea-8*
javaws
, without prefixing any path, should effectively invoke /opt/java/64/jre1.8.0_161/bin/javaws
As it does not do so, something must be incorrect.Code: Select all
peter@boxybox ~ $ ls -l /usr/bin/java /usr/bin/javaws
ls: cannot access '/usr/bin/javaws': No such file or directory
lrwxrwxrwx 1 root root 22 Mar 5 17:42 /usr/bin/java -> /etc/alternatives/java
Code: Select all
peter@boxybox ~ $ ls -l /etc/alternatives/java /etc/alternatives/javaws
ls: cannot access '/etc/alternatives/javaws': No such file or directory
lrwxrwxrwx 1 root root 34 Mar 5 17:42 /etc/alternatives/java -> /opt/java/64/jre1.8.0_161/bin/java
Code: Select all
peter@boxybox ~ $ dpkg --list openjdk-8* icedtea-8*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un openjdk-8-jre <none> <none> (no description available)
rc openjdk-8-jre- 8u151-b12-0u amd64 OpenJDK Java runtime, using Hotsp
dpkg-query: no packages found matching icedtea-8*
Code: Select all
update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/java/64/jre1.8.0_161/bin/javaws" 1
update-alternatives --set javaws /opt/java/64/jre1.8.0_161/bin/javaws
Code: Select all
update-alternatives --list javaws
Code: Select all
peter@boxybox ~ $ update-alternatives --list javaws
/opt/java/64/jre1.8.0_161/bin/javaws