java applet download error

May 15, 2012 at 10:37 AM



I have a webserver applicaton, and it works fine, just i can't download the attached java applets...


this is the simple server build:


// create a server.

var server = new Server();

var module = new FileModule();

module.Resources.Add(new FileResources("/""D:\\rootdir\\"));


server.Add(HttpListener.Create(IPAddress.Any, 8085));



i have two files in ther rootdir: index.html and test.jar;

if i try to connect the server, i have a good html page and one error message from JVM:

ClassNotFoundException: pack.test.class


the applet tag in the html: <APPLET code="pack\test.class" archive="test.jar" <\APPLET>


any idea, what is the wrong?

May 15, 2012 at 10:47 AM

The "jar" file extension is not activated by default. You can verify this by surfing to http://localhost:8080/pack/test.class

May 15, 2012 at 11:02 AM

thank you i will check it