dirku
asked on
ClassFormatError
What's the reason for the following error message of the Navigator?
# Applet debug level set to 9
# stopApplet: contextID=2 appletID=13800992 parentMWContext=13682640
# Stopping applet: pm, appletID=13800992, contextID=2
# destroyApplet: contextID=2 appletID=13800992
# Destroying applet: pm, appletID=13800992, contextID=2
# total applets=1
# destroying context for contextID 2
# Destroying applet context: http://Storm/Pm/pm.html, contextID=2
# Destroying AppletFrame without disposing: netscape.applet.DerivedApp letFrame[f rame2,0,0, 850x300,hi dden,layou t=java.awt .BorderLay out,resiza ble,title= ]
# frameMWContext=13682640
# Destroying all applets: http://Storm/Pm/pm.html, contextID=2
# initApplet: contextID=2 appletID=13771952 parentContext=13682640 frameContext=13682640
# New applet context: http://Storm/Pm/pm.html, contextID=2
# Initializing applet: pm.class, appletID=13771952, contextID=2
# docURL=http://Storm/Pm/pm.html reloadClasses=true
# total applets=2
# New applet: 13771952 at http://Storm/Pm/ width=850 height=300 hspace=0 vspace=0 align=baseline codebase=http://Storm/Pm/ code=pm.class
# startApplet: contextID=2 appletID=13771952 newFrameMWContext=13682640
# Starting applet: pm, appletID=13771952, contextID=2
# preventing reuse of netscape.applet.AppletClas sLoader@80 0cda6
# new class loader netscape.applet.AppletClas sLoader@80 08b86
# context = netscape.applet.MozillaApp letContext @800d660
# codebase = http://Storm/Pm/
# Loading class pm
# Fetching http://Storm/Pm/pm.class
# Destroying AppletFrame without disposing: netscape.applet.DerivedApp letFrame[f rame2,0,0, 850x300,hi dden,layou t=java.awt .BorderLay out,resiza ble,title= ]
# Applet exception: error: java.lang.ClassFormatError : Wrong class name inside class file
java.lang.ClassFormatError : Wrong class name inside class file
at java.lang.ClassLoader.defi neClass(Co mpiled Code)
at netscape.applet.AppletClas sLoader.lo adClass(Co mpiled Code)
at netscape.applet.AppletClas sLoader.fi ndClass(Co mpiled Code)
at netscape.applet.AppletClas sLoader.lo adClass1(C ompiled Code)
* at netscape.applet.AppletClas sLoader.lo adClass(Co mpiled Code)
at netscape.applet.AppletClas sLoader.lo adClass(Co mpiled Code)
at netscape.applet.DerivedApp letFrame$L oadAppletE vent.dispa tch(Compil ed Code)
at java.awt.EventDispatchThre ad$EventPu mp.dispatc hEvents(Co mpiled Code)
at java.awt.EventDispatchThre ad.run(Com piled Code)
at netscape.applet.DerivedApp letFrame$A ppletEvent DispatchTh read.run(C ompiled Code)
Using JBuilder 2 and the AppletViewer the program runs well.
Maybe it's important that I have all class files in a directory called "pm" since all the files of the program should belong to the package pm.
# Applet debug level set to 9
# stopApplet: contextID=2 appletID=13800992 parentMWContext=13682640
# Stopping applet: pm, appletID=13800992, contextID=2
# destroyApplet: contextID=2 appletID=13800992
# Destroying applet: pm, appletID=13800992, contextID=2
# total applets=1
# destroying context for contextID 2
# Destroying applet context: http://Storm/Pm/pm.html, contextID=2
# Destroying AppletFrame without disposing: netscape.applet.DerivedApp
# frameMWContext=13682640
# Destroying all applets: http://Storm/Pm/pm.html, contextID=2
# initApplet: contextID=2 appletID=13771952 parentContext=13682640 frameContext=13682640
# New applet context: http://Storm/Pm/pm.html, contextID=2
# Initializing applet: pm.class, appletID=13771952, contextID=2
# docURL=http://Storm/Pm/pm.html reloadClasses=true
# total applets=2
# New applet: 13771952 at http://Storm/Pm/ width=850 height=300 hspace=0 vspace=0 align=baseline codebase=http://Storm/Pm/ code=pm.class
# startApplet: contextID=2 appletID=13771952 newFrameMWContext=13682640
# Starting applet: pm, appletID=13771952, contextID=2
# preventing reuse of netscape.applet.AppletClas
# new class loader netscape.applet.AppletClas
# context = netscape.applet.MozillaApp
# codebase = http://Storm/Pm/
# Loading class pm
# Fetching http://Storm/Pm/pm.class
# Destroying AppletFrame without disposing: netscape.applet.DerivedApp
# Applet exception: error: java.lang.ClassFormatError
java.lang.ClassFormatError
at java.lang.ClassLoader.defi
at netscape.applet.AppletClas
at netscape.applet.AppletClas
at netscape.applet.AppletClas
* at netscape.applet.AppletClas
at netscape.applet.AppletClas
at netscape.applet.DerivedApp
at java.awt.EventDispatchThre
at java.awt.EventDispatchThre
at netscape.applet.DerivedApp
Using JBuilder 2 and the AppletViewer the program runs well.
Maybe it's important that I have all class files in a directory called "pm" since all the files of the program should belong to the package pm.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Silly mistake! I really needed to change CODE="pm/pm.class" to CODE="pm/PM.class" ...
ASKER