T. Webster
T. Webster

Reputation: 10109

after sun-java6-jdk install: JAVA_HOME not found. /usr/jdk not found

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

Answers (2)

T. Webster
T. Webster

Reputation: 10109

For Linux 2.6.24-19-server

/usr/lib/jvm/java-6-sun/ is the exact path to JAVA_HOME

Upvotes: 0

Ravi Trivedi
Ravi Trivedi

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

Related Questions