I always come across the same problems when installing java and weblogic on SLES, so just for me as reminder, wanted to write a manual
Install Java:
1) download java 6 distribution (dependeing on whether 64 or 32 bits)
ftp http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR
2)after it is installed as java-1.6.0_45.bin move it to the folder where you want it to be installed, for example in my case:
c>mv java-1.6.0_45.bin /usr/java-6/java-1.6.0_45.bin
3) install java
c> ./java-1.6.0_45.bin
2) set JAVA as path PATH
c> cd /etc
c> vi profile.local
The content of the file:
JAVA_BINDIR=/usr/java-6/jdk1.6.0_45/bin
JAVA_HOME=/usr/java-6/jdk1.6.0_45
JDK_HOME=/usr/java-6/jdk1.6.0_45
JRE_HOME=/usr/java-6/jdk1.6.0_45/jre
PATH=`echo $PATH|sed 's|:/usr/lib/java/bin|:/usr/java-6/jdk1.6.0_45/bin|'`
export JAVA_BINDIR
export JAVA_HOME
export JDK_HOME
export JRE_HOME
export PATH
No comments:
Post a Comment