troubleshooting Question

Running an JNLP applet in the AppletViewer

Avatar of Cheney
Cheney asked on
JavaWeb Development
11 Comments1 Solution1300 ViewsLast Modified:
Morning!

Has anybody gotten a jnlp applet to work inside the applet viewer (sun.applet.AppletViewer)?

I have the following HTML which points to a JNLP file on my server:

<applet code="MyTestApplet" width="800" height="600">	
	<param name="jnlp_href" value="http://testserver/Applet.jnlp"/>
	Your browser doesn't support the <code>applet</code> tag...
</applet>

If I load the HTML file into Chrome the applet loads up and works as expected.

If I execute the following command:

appletviewer applet-test.html

I get the following error:

java.lang.ClassNotFoundException: MyTestApplet
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:662)


I have an automated testing tool which requires applets to be running in the appletviewer to work correctly.

Any ideas?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros