Where is JAVA_HOME in Linux
Tomcat installation requires JAVA_HOME to be defined. In Windows it is straight forward. But in Linux binaries are in one folder and libraries are in other folder.
Is there a way to find out where exactly is JAVA_HOME? Thanks. |
Try this link here for a decent explanation: http://www.cyberciti.biz/faq/linux-u...path-variable/
And here's what I set on my system (I set this up some time ago): Code:
sasha@reactor: which java Code:
sasha@reactor: ls -la /usr/lib64 | grep java |
"which java" returns "/usr/bin/java". Now /usr/bin cannot be JAVA_HOME, or can it be?
The page you referred contains exactly the same things that you said. Thanks for the reply. |
Try /usr/lib/jvm.
|
my /usr/lib/jvm contains many java dirs as:
java java-openjdk jre-1.6.0-openjdk java-1.5.0-gcj-1.5.0.0 jre jre-gcj java-1.6.0 jre-1.5.0 jre-openjdk java-1.6.0-openjdk jre-1.5.0-gcj java-1.6.0-openjdk-1.6.0.0 jre-1.6.0 almost all are links to other folders mostly /etc/alternatives etc. But "java-openjdk" contains the required java installation inculding binaries. Tomcat in working ok with JAVA_HOME="/usr/lib/jvm/java-openjdk" Thanks. |
All times are GMT -5. The time now is 01:56 AM. |