Steve Byrne wrote:

> David Buddrige writes:
>  > Hi all,
>  >
>  > I have recently downloaded JDK 1.1.6 from
>  > ftp.progsoc.uts.edu.au/pub/Linux/java to run on my Redhat 5.1 system...
>  > I've un-tar'ed it into /usr/local/jdk1.1.6, and then added the following
>  > lines to my /etc/profile file....
>  >
>  > PATH="$PATH:/usr/X11R6/bin:/usr/local/jdk1.1.6/bin"
> This is ok.
>
>  > export JAVA_HOME="/usr/local/jdk1.1.6
> Wrong.
>  > export CLASSPATH="/usr/local/jdk1.1.6/lib/classes.zip"
> Nope.
>
> * You DO NOT need to set JAVA_HOME.  Doing so can be bad for your health
> * You only need to set CLASSPATH when you want it to contain something
>   other than '.' and the classes.zip (in your case, I think you didn't
>   need that, but it depends your hellow world's package structure
>   and what your current directory is).
>
> Try running again w/out the bad env var settings.  Did you get the glibc
> version of the JDK?  That's the one that you want for RH 5.1.
>
> Steve

  I have the same problem than David, but I have also Hotjava on my system. And
Hotjava needs JAVA_HOME ! What can I do ?

    Thanks, Alex.

Reply via email to