LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-27-2011, 07:28 AM   #1
rohaanmp
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
How to see java installed directory?


Hi All,

I am using SunOS 5.8 and KSH shell. My problem is , I can't find my java installed directory. Java is running from /usr/bin folder but I think there java is the link to actual java directory. Also nothin is set to $JAVA_HOME env variable. How to see the actual program location pointed by 'usr/bin/java' link.

Please help me as I am struggling to find it out for past 3 hours.
 
Old 10-27-2011, 08:01 AM   #2
rohaanmp
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
~/$ ls -l /usr/bin/java
lrwxrwxrwx 1 root other 16 Jul 27 2007 /usr/bin/java -> ../java/bin/java

so /usr/java/bin/java is my JRE unless there is a link further up that chain...

ls -l /usr/java
lrwxrwxrwx 1 root other 15 Jul 8 2009 /usr/java -> jdk/jdk1.5.0_19

so is /usr/jdk/jdk1.5.0_19 , well it would seem not...

ls -l /usr/jdk/jdk1.5.0_19
lrwxrwxrwx 1 root other 18 Jul 8 2009 /usr/jdk/jdk1.5.0_19 -> instances/jdk1.5.0

and finally

ls -l /usr/jdk/instances/jdk1.5.0
total 34630
-rw-r--r-- 1 root bin 2487 May 4 2009 COPYRIGHT
-rw-r--r-- 1 root bin 18272 May 4 2009 LICENSE
-rw-r--r-- 1 root bin 20415 May 4 2009 README.html
-rw-r--r-- 1 root bin 67235 May 4 2009 THIRDPARTYLICENSEREADME.txt
drwxr-xr-x 3 root bin 1024 Jul 8 2009 bin
drwxr-xr-x 9 root bin 512 Jul 8 2009 demo
drwxr-xr-x 3 root bin 512 Jul 8 2009 include
drwxr-xr-x 6 root bin 512 Jul 8 2009 jre
drwxr-xr-x 2 root bin 512 Jul 8 2009 lib
drwxr-xr-x 3 root bin 512 Jul 27 2007 man
-r--r--r-- 1 root other 5230 Jul 8 2009 register.html
-r--r--r-- 1 root other 5662 Jul 8 2009 register_ja.html
-r--r--r-- 1 root other 4840 Jul 8 2009 register_zh_CN.html
drwxr-xr-x 4 root bin 512 Jul 27 2007 sample
-rw-r--r-- 1 root bin 17570501 May 4 2009 src.zip

So in my case //usr/jdk/instances/jdk1.5.0/bin/java is my actual binary
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Synaptic Package Manager shows 'java-common' and 'java-gcj-compat' as Installed. swiadek Ubuntu 3 02-12-2006 11:54 AM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
I seem to have installed java twice crox Linux - Newbie 4 06-14-2003 04:52 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration