For installing Java, make that file executable by becoming root and type
# chmod a+x jdk-6urpm.bin
#./jdk-6urpm.bin
Check your default Java installation
# /usr/sbin/alternatives –config java
If latest Java installation is not avaliable, you must update alternatives with
# alternatives –install “usr/bin/java” “java” “/usr/java/jkd1.6.0_/bin/java” 2
Note that number 2 means that this Java installation will be shown as second when you run config java( if you have icedtea or open jdk for example, if not, type 1 ).
Now, check again Java with
Now, check again Java with
# /usr/sbin/alternatives –config java
And select new JDK as default.
No comments:
Post a Comment