Reputation: 10109
I followed the answer here
sudo apt-get install sun-java6-jdk
and installation went smoothly. Then to set JAVA_HOME I read the documentation, but while /usr/lib/jvm/java-6-sun-1.6.0.06/
directory was installed, no /usr/jdk
directory was created.
Where is the "jdk-install-dir"? Is there something else to install? and what is the correct JAVA_HOME
in my case?
The OS is Linux 2.6.24-19-SERVER.
Upvotes: 0
Views: 658
Reputation: 10109
For Linux 2.6.24-19-server
/usr/lib/jvm/java-6-sun/
is the exact path to JAVA_HOME
Upvotes: 0
Reputation: 2360
This is not true for all OS
and all JDK version
. OS like UBUNTU
has default directory set /usr/lib/jvm
.
And your home directory is /usr/lib/jvm/java-6-sun-1.6.0.06/
Upvotes: 1