This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Applets and the fly likes applet loading prob Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet loading prob" Watch "applet loading prob" New topic
Author

applet loading prob

Malini
Greenhorn

Joined: May 24, 2007
Posts: 1
I wrote a Applet class PieChart and try to load in a html page Pie.html
<applet code="PieChart" width="200" height="250"></applet>
but i am always getting Exception while loading.. Please help me..
load: class PieChart not found.
java.lang.ClassNotFoundException: PieChart
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)
... 10 more
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39530
    
  27
Welcome to JavaRanch.

Is the PieChart.class file in the same directory as Pie.html?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet loading prob
 
Similar Threads
Problem loading applet from servlet - load: xxx.class not found
Applet not getting initialized
Applet not loading due to IOException
class not found error
Loading java applet from a cab file failed