File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Applet problem

Vikas Dharmapurikar

Joined: Sep 12, 2003
Posts: 1
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 Source)
at Source)
Caused by: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$ Source)
at Method)
... 10 more

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

Joined: Sep 12, 2003
Posts: 2
yup, u need to create a jar file(put all ur classes inside)
I agree. Here's the link:
subject: Applet problem
It's not a secret anymore!