Reputation: 7
I'm trying to run
./runcat.sh
it gives me an error saying
ERROR: /usr/bin/java/jdk1.6.0_20 does not exist. JAVA_HOME is not set correctly.
I did this
JAVA_HOME=/usr/bin/java/jdk1.6.0_20 export JAVA_HOME
In the official document it says export JAVA_HOME=Java_home_directory
some one please help...
Upvotes: 1
Views: 6014
Reputation: 192
you can set JAVA_HOME=JAVA_HOME=/usr/bin/java/jdk1.6.0_20 in .bashrc and then execute the command "source .bashrc"
Upvotes: 0
Reputation: 4397
As the error message says, the directory /usr/bin/java/jdk1.6.0_20
does not exist.
Your JAVA home dir must be somewhereelse. You should search for it and change JAVA_HOME
environment variable accordingly.
You could search the JAVA_HOME
with something like:
find / -name java
EDIT
If, for example, this command returns /usr/java/jdk1.6.0.20/jre/bin/java
then your JAVA_HOME
is:
/usr/java/jdk1.6.0.20/jre/
Upvotes: 2