...
At this point, you have a JVM installed below your /usr/lib/jvm directory and you've a jinfo file tuned to your needs with a unique priority number.
...
Now it's time to link /etc/alternatives with our new installed JVM.
Anchor | ||||
---|---|---|---|---|
|
Usually one has to install each java commands, tools or libraries one by one with the following interactive command:
...
Code Block | ||||
---|---|---|---|---|
| ||||
user@machine:~$ update-alternatives --list java /usr/lib/jvm/default-java/jre/bin/java /usr/lib/jvm/java-8-openjdk-i386/jre/bin/java /usr/lib/jvm/java-8-oracle/jre/bin/java /usr/lib/jvm/ramdisk-java-8-oracle/jre/bin/java |
...
Anchor
...
InstallScripting InstallScripting
Scripting
InstallScripting | |
InstallScripting |
Doing this task one by one is pretty tedious, we provide a shell script ito facilitate the work.
...
Code Block | ||||
---|---|---|---|---|
| ||||
sudo update-alternatives --remove "java" "/usr/lib/jvm/default-java/jre/bin/java"; |
...
Anchor
...
UninstallScripting UninstallScripting
Scripting
UninstallScripting | |
UninstallScripting |
Doing this task one by one is pretty tedious, we provide a shell script ito facilitate the work.
...