Installing Java on OEL is a pretty straight forward task. It does have a few complications though. Remember the old days where you went to java.sun.com? Now that redirects you to an Oracle page and ultimately you end up here to download the goods:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Once you get through the links you’ll be presented with two choices to download:
Having downloaded your file you need to upload it to the server and then execute:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Once you get through the links you’ll be presented with two choices to download:
- jdk-6u22-linux-x64-rpm.bin
- jdk-6u22-linux-x64.bin
Having downloaded your file you need to upload it to the server and then execute:
chmod a+x <your file name>
And then run the application like this:
./<your file name>
Follow the prompts and the rest of the install is pretty straight forward.
Finally, you may want to edit your /etc/profile and add some things like JAVA_HOME (likely /usr/java/<version>) and CLASSPATH (likely something like $JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.:..)
Finally, you may want to edit your /etc/profile and add some things like JAVA_HOME (likely /usr/java/<version>) and CLASSPATH (likely something like $JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.:..)
| | | |
RSS Feed