Installing Java under Linux

To install Java under linux follow the steps bellow:


 * Download the Java SDK for linux.

$ chmod +x java_ee_sdk-5-linux.bin
 * Make the self-extracting binary executable:


 * Run the self-extracting binary, this will display the License agreement text and will ask you to accept the agreement:

$ ./java_ee_sdk-5-linux.bin


 * Follow the installation instructions on the screen.
 * Set the JAVA_HOME environment variable, by modifying . Example:

JAVA_HOME="/usr/java/jdk1.5.0_01" export JAVA_HOME

runs at startup, when the user logs into the system. So you will need to log out and log back in in order that the JAVA_HOME be defined.

Check to make sure JAVA_HOME is defined correctly using the command below. You should see the path to your Java SDK:

$ echo $JAVA_HOME

If you are using SuSe Linux make a cope of the file, edit the file and do some changes like this:


 * 1)    /etc/profile.d/alljava.sh
 * 2) send feedback to http://www.suse.de/feedback
 * 1) send feedback to http://www.suse.de/feedback
 * 1) send feedback to http://www.suse.de/feedback

export MYJAVAPATH=/opt/java/jdk export JAVA_BINDIR=$MYJAVAPATH/jdk/bin export JAVA_ROOT=$MYJAVAPATH/jdk/ export JAVA_HOME=$MYJAVAPATH/jdk/ export JRE_HOME=$MYJAVAPATH/jdk/jre export JDK_HOME=$MYJAVAPATH/jdk/ export SDK_HOME=$MYJAVAPATH/jdk/ export PATH=$PATH:$JAVA_BINDIR
 * 1) This script sets some environment variables for default java.
 * 2) Affected variables: PATH, JAVA_BINDIR, JAVA_HOME, JRE_HOME,
 * 3)                     JDK_HOME, SDK_HOME
 * 1)                     JDK_HOME, SDK_HOME