Child pages
  • Install or Uninstall Java

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
InstallCommandLine
InstallCommandLine
Command Line

Usually one has to install each java commands, tools or libraries one by one with the following interactive command:

...

Code Block
languagebash
themeEmacs
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

Doing this task one by one is pretty tedious, we provide a shell script ito facilitate the work.

...

Code Block
languagebash
themeEmacs
sudo update-alternatives --remove "java" "/usr/lib/jvm/default-java/jre/bin/java";

...

Anchor

...

UninstallScripting
UninstallScripting
Scripting

Doing this task one by one is pretty tedious, we provide a shell script ito facilitate the work.

...