This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes ClassNotFoundException botheringme very much Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "ClassNotFoundException botheringme very much" Watch "ClassNotFoundException botheringme very much" New topic
Author

ClassNotFoundException botheringme very much

Mayukh Gh
Greenhorn

Joined: Feb 22, 2011
Posts: 1
I am doing a project on chat in java applet.. I have made it using netbeans ide. In netbeans it works fine. Now I want to run it from command prompt. But I got the classnotfoundexception every time. I am giving my directory structure:::
ChatSystem---|
|--- com---|
|--chat---|
|---frame---|
|-----Server.class (This is my main class)
|-----Client.class (This is the class which extends applet)
|-----Some More Classes are here

Now suggest me where should I keep my Client.html file?? I've been tried to keep it on ChatSystem folder besides of com folder. And I have written inside the <applet> tag this:::
<HTML><HEAD><TITLE>Applet HTML Page</TITLE></HEAD>
<BODY>
<APPLET codebase="/com/chat/frame" code="Client.class" width=700 height=500></APPLET>
</BODY>
</HTML>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41065
    
  43
I've been tried to keep it on ChatSystem folder besides of com folder

That's the correct place.

codebase="/com/chat/frame" code="Client.class"

Replace that by code="com.chat.frame.Client.class"


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ClassNotFoundException botheringme very much
 
Similar Threads
I/O exception while reading: C:\-classpath..?
Deploy applet in Tomcat
Making an Html file, I'm using Eclipse(Urgent)
Applet fetching problem in servlet
multiple HTML popup windows