Child pages
  • Ramdisk Java

Versions Compared

Key

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

...

in the /usr/lib/jvm directory we define the default-java to point to a local symlink who will point to our ramdisk:

 

Code Block
languagebash
themeEmacs
user@machine:/usr/lib/jvm$ ls -al
total 92
drwxr-xr-x 7 root root 4096 Jul 13 13:40 .
drwxr-xr-x 205 root root 53248 Jul 13 09:22 ..
lrwxrwxrwx 1 root root 34 Jul 7 15:33 default-java -> /usr/lib/jvm/ramdisk-java-8-oracle
lrwxrwxrwx 1 root root 28 Jul 13 12:15 .default-java.jinfo -> .ramdisk-java-8-oracle.jinfo
lrwxrwxrwx 1 root root 20 Jul 7 11:46 ramdisk-java-8-oracle -> /media/ramdisk-java-8-oracle
-rw-r--r-- 1 root root 3569 Jul 13 10:24 .ramdisk-java-8-oracle.jinfo

...

Then we create a bunch of install and remove shell scripts to update-alternatives either the default-java and the ramdisk-java-8-oracle.

First we update-alternatives ramdisk-java-8-oracle: then default-java and finally update-java-alternatives our default-java.