Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
Server & Storage Systems
This discussion is archived
on Apr 17, 2013 7:12 AM by Nik
Setting java path in Linux
Apr 17, 2013 7:06 AM
I have installed Java 7 using rpm file: jdk-7u17-linux-x64.rpm, with the help of below command on my linux box:
rpm -ivh jdk-7u17-linux-x64.rpm
After completing the installation the java is installed in location "/usr/java/jdk1.7.0_17", when I try to find the jave version I am getting different result:
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-126.96.36.199.4.el6-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
It is still pointing to 1.6 which was installed on my linux box earlier. How can I make sure that the java command uses the latest installed JDK 7?
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Re: Setting java path in Linux
Apr 17, 2013 7:12 AM
in response to
show what file select for this command.
set order of path for find executable file.
add this commands to $HOME/.profile for make this changes permanent.