Question : Applet won't run using .jar archive

Okay i have following html code.Which suppose to trigger my applet,but instead of that i'm getting error message stating this

"java.lang.ClassNotFoundException: google.class
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\Users\GIO\Documents\NetBeansProjects\Trax\dist\google\class.class (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.nit>(Unknown Source)
      at java.io.FileInputStream.nit>(Unknown Source)
      at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
      at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      ... 7 more
Exception: java.lang.ClassNotFoundException: google.class
"

The contents of savas.jar as follows

savas.jar
+ META-INF
      ...MANIFEST.MF
      ...MYKEY.DSA
      ...MYKEY.SF
+ savas
      ...google.class
---END OF ARCHIVE
Code Snippet:
1:
2:
3:
4:




Answer : Applet won't run using .jar archive

>

need to specify the package name


Random Solutions  
 
programming4us programming4us