View Full Version : [ubuntu] where is java's home dir?...
zander1013
January 30th, 2009, 06:42 AM
hi,
how do i find the home dir of java on my machine?
i am using 8.10.
thank you,
zander
EnGorDiaz
January 30th, 2009, 06:51 AM
goto home
and then
ctrl H
zander1013
January 30th, 2009, 06:54 AM
goto home
and then
ctrl H
thank you; but i am not in a java environment. i would like to determine the path to the java 1.6 sdk installed on my machine.
please advise.
darco
January 30th, 2009, 07:11 AM
type
whereis java
daro
zander1013
January 30th, 2009, 07:17 AM
type
whereis java
daro
thank you darco...
:popcorn:
gtdaqua
January 30th, 2009, 07:22 AM
$ whereis java
java: /usr/bin/java /etc/java /usr/share/java
That tells the command java resides in /usr/bin/java.
Dig again:
$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2009-01-15 18:34 /usr/bin/java -> /etc/alternatives/java
So, now we know that /usr/bin/java is actually a symbolic link to /etc/alternatives/java.
Dig deeper using the same method above:
$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 31 2009-01-15 18:34 /etc/alternatives/java -> /usr/local/jre1.6.0_07/bin/java
So, thats the actual location of java: /usr/local/jre.....
You could still dig deeper to find other symbolic links.
Coldhearth
May 11th, 2009, 07:39 PM
Thx your post helped me out very good =)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.