views:

123

answers:

0

Hi,

I am trying to create a self signed certificate by using the utilities that come along with MS SDK. I am able to successfully create the test certificate and install it in the trusted root store. I created a sample HelloWorld applet. I created a CAB file with the .class file. I used the Visual studio tool to create the CAB file. Also i tried with CABARC .Then i created a HTML file that uses this CAB file. But i get a classnotfound exception when i run this page.

I tried the same steps with a JAR file and it worked fine. For siging a JAR file i used the jarsigner utility.

.. < applet code=HelloWorld width=200 height=200 > < param name="cabinets" value="readIE.cab" >

I have tried the < param name = "cabbase" .. > option too.

ERROR

Java Plug-in 1.6.0_03 Using JRE version 1.6.0_03 Java HotSpot(TM) Client VM User home directory = C:\Users\Vijaysai.Janardhan

load: class HelloWorld not found. java.lang.ClassNotFoundException: HelloWorld 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.FileNotFoundException: C:\Users\Vijaysai.Janardhan\Desktop\HelloWorld.class (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(Unknown Source) at java.io.FileInputStream.(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source) 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) ... 10 more

Should i include some code to extract the class file and place it in the jre path? I suspect it is a config issue..

Thank you.