On my RedHat machine, I replaced the soft link in /usr/bin with
a shell script which sets the classpath:
#!/bin/bash
export MOZILLA_HOME=/usr/lib/netscape
for i in ${MOZILLA_HOME}/java/classes/*.jar
do
CP=${CP:-.}:$i
done
for i in /path/to/swing/*.jar
do
CP=${CP:-.}:$i
done
unset i
export CLASSPATH=${CP}
unset CP
exec ${MOZILLA_HOME}/netscape
[EMAIL PROTECTED] on 02/10/99 08:45:44 PM
To: [EMAIL PROTECTED]
cc: (bcc: Russell Pridemore/Lex/Lexmark)
Subject: Swing 1.1 & Netscape Communicator?
On HP-UX I've been able to copy the Swing 1.1 JAR files into
.../netscape/java/classes in order to run Swing 1.1 applets in Netscape
Communicator 4.5. (Putting the JAR files in CLASSPATH works as well.)
But on my Linux box (Red Hat 5.1; linux 2.1.119 kernel) this doesn't
seem to work. Depending on which Swing 1.1 applet I run, I'm either
prompted by the default plugin to download the Java Plugin (which AFAIK
doesn't exist yet for JDK 1.2) or get the following error:
Applet SwingingApplet error:
java.lang.classFormatError: Bad magic number
I successfully built and ran a small Swing 1.1 *application* using the
1.1 JAR files, so I suspect that the files are not corrupt.
I've also tried the Swing 1.1.1 Beta 1 with no different results.
Is there anything I can do to get Swing 1.1 to work with Communicator?
TIA,
Jim Caley
E-mail: [EMAIL PROTECTED]