Visit http://java.sun.com/javase/downloads/widget/jdk6.jsp to download the jdk. While downloading select "jdk-6u20-linux-i586-rpm.bin".
Once downloading is finished login using root privileges and run the following:
#chmod 777 jdk-6u20-linux-i586-rpm.bin
#./ jdk-6u20-linux-i586-rpm.bin
This will start extraction of various packages in the file and the start installing it. Accept the license agreement.
If you already have open jdk installed on your machine, then to use the new jdk you need to change the links pointed by /usr/bin/java*. Following lines shows it how to do that: (# prompt means root's shell)
#ln -fs /usr/java/jdk1.6.0_20/bin/java /usr/bin/java
After changing the link you can check the version using
$java -version
Similarly we need to change the link for javac, javadoc, javah, javap, javaw
#ln -fs /usr/java/jdk1.6.0_20/bin/javac /usr/bin/javac
#ln -fs /usr/java/jdk1.6.0_20/bin/javadoc /usr/bin/javadoc
#ln -fs /usr/java/jdk1.6.0_20/bin/javah /usr/bin/javah
ln -fs /usr/java/jdk1.6.0_20/bin/javap /usr/bin/javap
ln -fs /usr/java/jdk1.6.0_20/bin/javaws /usr/bin/javaws
Check all the paths using
#ls -l /usr/bin/java*
Subscribe to:
Post Comments (Atom)
Securing Microservices with JWT Authentication and Data Encryption
Securing Microservices with JWT Authentication and Data Encryption Securing Microservices with JWT A...
-
Have you tried to mock a method in Kotlin? As mentioned in this guide we can simply use following code to make it work. //You can mock conc...
-
Introduction If you are working on android library project, you might be wondering how to publish it on Maven like this . Earl...
-
For scanning wifi access points at interval of 30 seconds, I have the following code. However I strongly discourage frequent scanning as i...
No comments:
Post a Comment