This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException botheringme very much

 
Mayukh Gh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic