Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAVA_HOME keeps defaulting to somewhere else

807589Sep 28 2008 — edited Sep 29 2008
Hello all,

I have the following sub-directories in this directory (/usr/java):

jdk and jdk1.5.0_15

Here are my environtment variables:
declare -x J2RE_HOME="/usr/java/jdk/jre"
declare -x JAVA_HOME="/usr/java/jdk"
declare -x JDK_HOME="/usr/java/jdk"
declare -x JRE_HOME="/usr/java/jdk/jre"
I am trying to compile something and I get this error:
Error running /usr/java/*jdk1.5.0_15*/bin/javac compiler

Why is it using that compiler when my JAVA_HOME points to the jdk directory! Is it because of the names that are so closely related?!

**EDIT:* SOLVED, its a sym link, damn it!!!!!!!!*

Thank you for any help.

Edited by: abshirf2 on Sep 28, 2008 10:30 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2008
Added on Sep 28 2008
1 comment
130 views