Skip to main content

Problem with tag - ClassNotFoundException

1 reply [Last post]
rymd80
Offline
Joined: 2005-01-17

I'm getting a ClassNotFoundException launching an applet from an html page.

The web application file system contains:

/index.html
/lib/myapplet.jar

The object tag from index.html

The applet class file is packaged in the jar file lib/myapplet.jar (lib is located under the web application root).

The applet package is com.test. All the examples I found don't have packages so I'm not exactly sure where to reference the package. I assumed it was the "code" parameter.

The Error

network: Cache entry not found [url: http://localhost:8080/myWebApp/com/test/ViewerApplet.class, version: null]

load: class mil.army.iPerms.saf.scanner.gui.SAFScannerVeiwerApplet.class not found. java.lang.ClassNotFoundException: com.test.ViewerApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

Can anyone help me get headed in the right direction?
Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rymd80
Offline
Joined: 2005-01-17

I noticed in the error in the original is wrong. The error string is:

load: class com.test.ViewerApplet.class not found. java.lang.ClassNotFoundException: com.test.ViewerApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)