java.lang.VerifyError in Netscape when loading applet
Ezra Exposito
Ranch Hand
Joined: Apr 26, 2001
Posts: 34
posted
0
I created an applet and I am running it off a local web server. When I load the html page containing the applet using Opera5.11 everything works great. However, when I try to load it using Netscape4.7 I get the following error in the java console: Netscape Communications Corporation -- Java 1.1.5 Type '?' for options. Symantec Java! ByteCode Compiler Version 210.065 Copyright (C) 1996-97 Symantec Corporation # Verifier error profile/searchProfiles.sortVector()V: Cannot find class java/util/List # Applet exception: class profile/searchProfiles got a security violation: method verification error java.lang.VerifyError: profile/searchProfiles at java.lang.ClassLoader.resolveClass(Compiled Code) at netscape.applet.AppletClassLoader.loadClass1(Compiled Code) * at netscape.applet.AppletClassLoader.loadClass(Compiled Code) at netscape.applet.AppletClassLoader.loadClass(Compiled Code) at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code) at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code) This applet consist of only AWT components so everything should be supported. Any help would be greatly appreciated. Thanks, E.E.
Ezra Exposito
Ranch Hand
Joined: Apr 26, 2001
Posts: 34
posted
0
Still no luck with this one. Here is some extra info that might give some clues. When I try to open the applet in IE4 I get the following: java.lang.InstantiationException: searchProfiles at com/ms/applet/BrowserAppletFrame.newInstance (BrowserAppletFrame.java) at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java) at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java) at com/ms/applet/AppletPanel.run (AppletPanel.java) at java/lang/Thread.run (Thread.java) I also made sure that the applet had a default constructor so the browser can instantiate it. In addition, it works when I run it from the DOS prompt using appletviewer. So it works with Opera and appletviewer but not with Netscape or IE. The only thing I can think of is that appletviewer and Opera have some classes that need to be loaded into Netscape and IE. Does anyone know in what jar file does sun place their class files like java.awt.List ? Thanks, Ezra
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: java.lang.VerifyError in Netscape when loading applet