Lonnie Cumberland wrote:
> I'm new to Java for Linux, and am having some problems getting the
> JDK1.1.6v4a installed on my Linux Redhat 5.1 system. It seams that java
> wants me so set some library path variable, but I do not know which one.
>
> I downloaded the jdk1.1.6v4a for glibc and untarred it just like the
> instructions said. I then set the PATH and CLASSPATH variable just like
> I was told to do. After that I just tried to run the appletviewer with
> a demo, but it says that "no library path set". This also occurs when I
> just try to use javac and <somefile>.java.
Don't set CLASSPATH.
Set PATH to include just the bin directory.
e.g. I unzip the file to /usr/local/jdk116a, make a symbolic link
with cd /usr/local; ln -s jdk116a jdk
and put /usr/local/jdk/bin in my PATH.
(That way I can switch between JDK's by changing a single
symlink.)
It may help to uninstall older JRE's on your machine, too.
- Dan