This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Applet problem" Watch "Applet problem" New topic
Author

Applet problem

Vikas Dharmapurikar
Greenhorn

Joined: Sep 12, 2003
Posts: 1
Hi,
I wrote one chat applet which was running well on local web server(intranet), but when i upload this applet, it was not running saying MyChat.class not found, so i made modification code where i put all those classes in packges and then i compiled it now when i am trying to run it on local web server it is not running there to. This is basically problem of codebase can some tell me that what exactly should be value for codebase and do i need to create jar file of the classes which will be used by applet.
and this message i am getting on my ie(ver 6.0)

load: class ChatApplication.class not found.
java.lang.ClassNotFoundException: ChatApplication.class
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


[ September 12, 2003: Message edited by: Vikas Dharmapurikar ]
Jones Susan
Greenhorn

Joined: Sep 12, 2003
Posts: 2
yup, u need to create a jar file(put all ur classes inside)
 
GeeCON Prague 2014
 
subject: Applet problem