JJ Neff jjneff at yahoo.com
Fri Dec 27 08:57:23 EST 2002


WHen you are in a console and type " echo $JDK_HOME"  what is returned ?  It
should be the path to your jdk executable (java, javac).  


Imagine that you installed to opt, then it is something like
/opt/JDK1.3XX/bin/javac   Or something like that.  Java is the executable to
start a vm and I believe javac is the compiler.

There are a host of environment variables for Java, the classpath will tell
java where to look by default for compiled java files and the JDK_Home env
variable oviously tells applications that want to use the JDK where it is. THe
nice thing is you can have multiple version of java JRE and JAVA JDKs from
different distributors and point to them with the env variables or run them
from command line depending on what you are doing.  I am not saying I recommend
this (it gets confusing when you are not sure what version you are actually
running (use 'which java' to make sure you know where you shell ispointing)

Oh yeah you set the JDK_HOME env variable fom the cmd line or from a file (I
like .bashrc in my home dir but each distro has a different location for all
users to get the env variable, ususally as root there is an /etc/bashrc or
/etc/profile , basically you set and environment variable and export it so it
is available in all consoles (I know there is a more tty oriented user blah
blah explanation but I like simple:-)

SO add to (example) /etc/profile "JDK_HOME = "/path/to/your/javacfile"  (dont
need to include file itself just the parent directory)  then make sure in the
file you add to the export line "JDK_HOME"  Look at your examples on your
system and just add your lines in (after copying the original  of course :-)

Good luck

JJN
--- "Riga, Anthony" <Anthony.Riga at searbrown.com> wrote:
> Does anyone know how to install the Java SunTM ONE Studio 4 update 1,
> Community Edition - J2SETM 1.4.1 Cobundle? I get it to install but when I run
> it I get an error cannot find JDK.Please set the JDK_HOME environment
> variable to piont to the JDK install dir. I have JDK installed but how would
> I get it to point to the dir? 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the nflug mailing list