Results 1 to 1 of 1
- 10-22-2009, 11:19 AM #1
Member
- Join Date
- Oct 2009
- Posts
- 21
- Rep Power
- 0
ClassNotFoundException while executing jar applet
I have an html file with the following in it.
Inside my jar file is the following.Java Code:<html> <body> <H2>HappyChat Example</H2> <div> <applet archive = "HappyApplet.jar" code = "happychat.HappyChat", width = 650, height = 400 /> </div> </body> </html>
However when I try and view the applet through the browser I get the following errorJava Code:C:\Projects\Java\testit>jar -tvf HappyApplet.jar 0 Thu Oct 22 22:21:46 NZDT 2009 META-INF/ 104 Thu Oct 22 22:21:46 NZDT 2009 META-INF/MANIFEST.MF 1309 Thu Oct 22 19:41:06 NZDT 2009 happychat/HappyChat.class 5766 Thu Oct 22 19:41:06 NZDT 2009 happychat/UI.class 2382 Thu Oct 22 14:42:48 NZDT 2009 happychat/audiothreads/PlayerThread.class 4293 Thu Oct 22 14:42:56 NZDT 2009 happychat/audiothreads/RecorderThread.class
Java Code:Java Plug-in 1.6.0_16 Using JRE version 1.6.0_16-b01 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\Glenn ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ---------------------------------------------------- load: class happychat.HappyChat not found. java.lang.ClassNotFoundException: happychat.HappyChat 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:\Projects\Java\testit\happychat\HappyChat.class (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at sun.net.[url]www.protocol.file.FileURLConnection.connect(Unknown[/url] Source) at sun.net.[url]www.protocol.file.FileURLConnection.getInputStream(Unknown[/url] 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: happychat.HappyChat
For some reason the browser is not digging into the archive for the files. Any ideas what I am doing wrong?
Thanks in advance.
Glenn.
Similar Threads
-
ClassNotFoundException with Applet and new JRE
By marrra in forum Java AppletsReplies: 3Last Post: 06-22-2010, 11:13 AM -
ClassNotFoundException
By Edward in forum New To JavaReplies: 2Last Post: 06-29-2009, 07:08 PM -
ClassNotFoundException JSP
By TDMaster in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 03-27-2009, 07:41 AM -
ClassNotFoundException
By Chezelle in forum Java AppletsReplies: 5Last Post: 12-24-2008, 04:26 PM -
Getting UnmarshalException n ClassNotFoundException in RMI
By anuj_1983 in forum New To JavaReplies: 0Last Post: 07-09-2008, 12:36 PM


LinkBack URL
About LinkBacks

Bookmarks