Page tree

Versions Compared

Key

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

 

Include PageWhat is 0FS (Zero Footprint Service)What is 0FS (Zero Footprint Service)Go to the Java website, choose the JRE or JDK based on your platform and needs. Download the requisite .bin 64-bit JRE (Java Runtime Engine). Download the .tar.gz file and upload the file to the serveradmin home folder. For older versions of Java go to the Java Archives site.

Info

For download expediency, use the latest JRE or JDK version found at www.bonsaiframework.com/downloads/

Steps for JRE and JDK are both the same. Here is an example of a JRE setup,

Note

Even on a 64-bit Operating System, 64-bit Java is not recommended at the moment due to significant loss in performance.

If you try and install 32-bit Java on 64-bit Ubuntu you will get the following errorUse the account that will be launching the Java process. In this example it will be serveradmin,

Code Block
languagebash
./jre-6u22-linux-i586.bin
Unpacking...
Checksumming...
Extracting...
./jre-6u22-linux-i586.bin: 113: ./install.sfx.7783: not found
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.

This is because the 32-bit library support is not installed,

For Ubuntu 11 and lower,

Code Block
languagebash
sudo apt-get install ia32-libs # Required for 32-bit Java on 64-bit Ubuntu

For Ubuntu 12 and higher, ia32-lib has been removed in favour of multiarch,

Code Block
languagebash
sudo apt-get install ia32-libs-multiarch 

Now 32-bit Java can be installed. To perform these actions, use the account that will be launching the Java process.

...

su - serveradmin # If you are not already serveradmin
cd ~
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn/java/jdk/7u7-b10/jre-7u7-linux-x64.tar.gz

The steps for JRE and JDK are both the same. Here is an example of a JRE setup,

Code Block
languagebash
su - serveradmin # If you are not already serveradmin
cd ~ # Switch to the serveradmin home directory
chmod u+xtar -xvpf jre-6u227u7-linux-i586x64.bin
./jre-6u22-linux-i586.bintar.gz

The result will be an uncompressed jre directory using the same name as the package. In this example the folder name would be, jre1.6.0_22. jre-7u7-linux-x64.

If you plan to use multiple versions of Java, we recommend keeping the folder name with the version number information and using symbolic links. If you are only using one version of Java, then simply rename the folder.

For the server example, we will rename the folder,

Code Block
mv jre1.6.0_22jre-7u7-linux-x64 java
Tip

You may be interested in how to Zero Footprint Java on Windows.