javier ganzarain wrote:
>
> *********************
> Well, in my case I am also having a similar problem. I get the message
> java.lan.NoClassDefFoundError javax/swing/JApplet
>
> I am using Linux 6.0 with JDK1.2.1 (I am trying it as well at home with
> W95 and WNT). But in any case Swing does not work (Only the
> appletviewer).
Make sure you do not have any CLASSPATH environment variable set - Java
2 has default search paths for the core classes, and gets confused if
you have a CLASSPATH env var set. If you have given a package name to
your own code, you only need to add that path with the -classpath flag
-everything else happens automatically.
You might also want to look in your Java directories to see if you have
all the jar files that should have come with your download (dt.jar,
tools.jar in jdk1.2/lib are the most important ones; jdk1.2/jre/lib/ext
should have iiimp.jar and any third-party jar files you add to it). The
dt.jar file should have the javax.swing.* classes in it.
>
> It seems to be that my Browser is also not yet prepared for Swing. When
> i look to the infos under Sun pages, they talk about installing the java
> plug-in. Sorry, but I thought that Swing, 2D and the plug-in was
> already integrated within JDK1.2.1
>
> Can any one please help me?
Netscape doesn't use the version of Java you have installed on your
local system to run applets - it uses its own internal version. You can
get Swing applets working in Netscape by copying swingall.jar from the
standalone Swing 1.1.X release to Netscape's "java/classes" directory
(or whatever they're calling it these days).
--
Jeff Galyan
http://www.anamorphic.com
http://www.sun.com
jeffrey dot galyan at sun dot com
talisman at anamorphic dot com
Sun Certified Java(TM) Programmer
======================================================================
Linus Torvalds on Microsoft and software development:
"... if it's a hobby for me and a job for you, why are you doing such a
shoddy job of it?"
The views expressed herein do not necessarily reflect those of my
employer.
Sun Microsystems, Inc., has no connection to my involvement with the
Mozilla Organization.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]