The only imports I'm using are standard ones (java.awt.*,
java.awt.event.*, and javax.swing.*). Other similar Java applets,
using the same imports, have worked fine on the web page.
Does anyone have any suggestions about where the problem might be?
Where should I be looking?
Momo
(mj...@siue.edu -- the e-mail in the header is incorrect)
To get details about why your applet is not initializing, have a look at the
Java console in your browser. In IE6, it is at Tools/Sun Java Console. I
don't know where it is in Netscape but I'm pretty sure you'll find it if you
just poke around a bit. The Java Console will have the exception and stack
trace, which should be very helpful in debugging your problem.
Also, please consider putting all your class files into a single jar and
adjusting the HTML to point to the jar. This can greatly simplify the task
of installing your applets.
Rhino
The codebase attribute of your applet tag may be wrong on the server directory.
> I'm having a problem getting a particular Java applet to come up in
> my web page.
If you can't get a solution from the answers of
Rhino and hiwa, I suggest you give us an URL.
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
The web page is
http://www.siue.edu/~mjeng/FDPendulum.html
Any help would be appreciated. Really, I want to figure out how to
figure out how to fix it, so if anyone has any general suggestions
as to what I should be thinking about or reading, that would
be great. I have been programming in java for some time now, but
this is my first experience making a web page.
As I understand it, the codebase tags can't be the problem, since I have
other applets in the exact same directory that use the same classes,
and run just fine:
http://www.siue.edu/~mjeng/Grav.html and
http://www.siue.edu/~mjeng/SHO.html
Thanks to Rhino and hiwa for their suggestions!
Momo
java.lang.ClassFormatError: ForcedDampedOscillator (Illegal constant
pool type)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--
Dave Miller
FundablePlans - Create a custom business plan online - only $39.95
http://www.fundableplans.com