Signed applet is NOT LOADING..- please help

Hello

1) I created an applet called applet1.java and put it in a jar file called test.jar.

jar cf test.jar com

2) Then i signed the jar file using the following method.

keytool -genkey -alias helllo - keypass hello

jarsigner DwContentXfer.jar hello

3) I put the file on my server and tried to access the applet using the following code

<html>

<head>

</head>

<object height="0" width="0" code="com.hello.test.applet1"></object>

<body>

<script type="text/javascript">

</script>

</body>

</html>

I keep getting the following error under SUN JVM.

load: class com.hello.test.applet1 not found.

java.lang.ClassNotFoundException:com.hello.test.applet1

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: open HTTP connection failed.

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

[1729 byte] By [dinkarbhaia] at [2007-9-29 13:10:20]
# 1

You need to inform the JVM of the location of your classes, i.e. test.jar or whatever the jars name is.

For Example

if my applet.html is located in testFolder/html/

And my applet.jar is located in testFolder/jars/

Then, the following is my object tag

<object height="0" width="0" code="com/myClasses/test" codebase='../' archive='jars/applet.jar'></object>

maherrja at 2007-7-15 3:20:17 > top of Java-index,Security,Signed Applets...