Alexandre Boissy wrote:
> 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.
Let me chime in here too. I have built, under linux, a toy application and also
an applet.
It uses swing. All the files are in one package (including the app main file and
the applet file). I have jar'ed the class files all up into one jar file. Under
linux, I can get both the app and the applet (under appletviewer) to run.
When I carry the jar file over to a Windows95 system, it will not run. I get
NoClassDefFoundErrors.
Can someone show me an example of the RIGHT way to embed a jar file containing an
applet and other classes in the same package on an html page that is truly
portable? What, if any, classpath support is needed in the target environment?
How is swing support to be provided on the target environment?
I'm pulling my hair out, guys. Any help would be much appreciated.