Finding Java Home?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Finding Java Home?
# 1  
Old 12-02-2008
Finding Java Home?

Solaris 10

In the installation documentation for an application I am installing it says to run something from <JAVAHOME>

Where is Java Home/JAVAHOME, how can I find it?

I have tried echo $JAVAHOME but there is not output.

Any ideas?

Thanks

edit: there is a directory called 'jdk150_13' which I am guessing is the JAVA HOME. When I tried to run the command from there I got this error message:
bash: jdk150_13binjar: command not found

Last edited by Sepia; 12-02-2008 at 08:14 AM.. Reason: adding further information
# 2  
Old 12-02-2008
Quote:
Originally Posted by Sepia
Solaris 10

In the installation documentation for an application I am installing it says to run something from <JAVAHOME>

Where is Java Home/JAVAHOME, how can I find it?

I have tried echo $JAVAHOME but there is not output.

Any ideas?

Thanks

edit: there is a directory called 'jdk150_13' which I am guessing is the JAVA HOME. When I tried to run the command from there I got this error message:
bash: jdk150_13binjar: command not found
You need to explicitly set JAVA_HOME or JAVAHOME as the documentation asks you to. Set it as follows for bash/ksh shell
Code:
export JAVAHOME=/path/to/jdk150_13

# 3  
Old 12-02-2008
Thanks. Tried it but am still getting:
bash: jdk150_13binjar: command not found
# 4  
Old 12-02-2008
Quote:
Originally Posted by Sepia
Thanks. Tried it but am still getting:
bash: jdk150_13binjar: command not found
What is the command you are trying to run ?

Have you tried /jdk150_13/bin/jar

Also, I believe $JAVAHOME/bin must be set in the PATH

Last edited by vino; 12-02-2008 at 11:00 AM..
# 5  
Old 12-02-2008
Try find java_vm file in your system and print the output here.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cannot run this .java file from the home directory??

I wrote a simple test.java program in vi. I know it compiles correctly because I went into the directory where test.java was and compiled it and it created a java.class. I then ran test.java by staying in the same directory where it was and it worked great. However, when i backed out of the... (3 Replies)
Discussion started by: syregnar86
3 Replies

2. Shell Programming and Scripting

cp -p /home/* home/exp/*.date not working please help

:( ---------- Post updated at 01:51 AM ---------- Previous update was at 01:50 AM ---------- Not working ---------- Post updated at 02:04 AM ---------- Previous update was at 01:51 AM ---------- cp -p /home/* home/exp/*.`date` i am using this (4 Replies)
Discussion started by: rishiraaz
4 Replies

3. Solaris

how to change /export/home/user dir to /home /user in solaris

Hi all i am using solaris 10, i am creating user with useradd -d/home/user -m -s /bin/sh user user is created with in the following path /export/home/user (auto mount) i need the user to be created like this (/home as default home directory ) useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

4. Shell Programming and Scripting

finding duplicate files by size and finding pattern matching and its count

Hi, I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern. Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies

5. IP Networking

finding the java path in AIX

How to retrieve the path of Java bin directory in AIX (or any unix OS)?? Actually my problem is, I have a jar file called App.jar. I want to execute it by calling the javaw executable. My command is "/usr/java130/javaw -jar App.jar". I've written this command into a shell script. Now,... (2 Replies)
Discussion started by: fermisoft
2 Replies
Login or Register to Ask a Question