• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java class not found error.help me pls

 
priya _raghu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a chat program using applet and servlet.
so whenever messages passed between applet and servlet
i am storing it in one java class file called message.java.
so i want to call message.java file from applet.when i create
a object for class message its giving compiler error like
" cannot resolve symbol class message".Applet class and
message.java are in the same directory.
can anybody help pls.
 
Joe Ess
Bartender
Posts: 9297
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you didn't compile message.java and put the class file where the applet can find it.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Java beginner's forum, where "class not found" questions are more at home.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
priya _raghu,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
message.java might be in the same folder as the Applet, but is the compiled message.class in the same folder as the Applet?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic