Latest News

Thursday, January 12, 2017

How to Install/Update Java (JDK) on Oracle Linux

   Oracle Linux uses RPM or Red Hat Package Manager. For installing latest Java platform download Java RPM packages from below Oracle link :
Oracle releases Java RPM wrapped in a self-extracting binary file. So instead of using rpm tool, you just change the mode of file, and make it executable and then run it:
Time to Check the Status of Update

Is it done? Let’s check it:
-------------------------------------------------------------------------------------------------
Since not all the Application are compatible with the Java Versions, we still need to have the older version of Java as well. Java, it does not overwrite the previous versions. Instead, all installed Java versions are available to use.
 java is installed under /usr/java/jdk1.6.0_26 (so the path of java binary is /usr/java/jdk1.6.0_26/bin/java)

We have to make this as Default Java, 

r/java/jdk1.6.0_26/bin/java). I’ll add this as the default for Java:
Below are the arguments used:
–install tells that we’ll add a new alternative
/usr/bin/java is the default path for Java
java is the name of the software
/usr/java/jdk1.6.0_26/bin/java is the path of latest java we installed
16026 is the priority, I recommend you to give the exact version number so when you install a newer version and enter its version as priority, it’ll be selected as the default one (as long as mode is auto).
Let’s the alternatives of Java:
Let’s check the version of java:
Change the alternative of Java manually:
Type the number of the alernative you want to use and hit enter key.




  • Google+
  • Pinterest
« PREV
NEXT »

No comments

Post a Comment