Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class not found exception

 
belle springfield
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can you please figure out why it is having such error? heres the code
[ edited to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ August 11, 2004: Message edited by: Dirk Schreckmann ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"bullets doublezero"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class not found exceptions is related to classpath. Make sure that when you run java this class is either in the directory you are running from, or that if it is in subdirectories, that the class is in that package.

On other notes.

Under the Add Reply button, when posting, there are ten buttons that can better display information in your posts. One of them, the CODE button, will allow you to put code within the tags, so that your code formatting remains, things like indentation. Otherwise, it makes it very difficult for anyone to read and understand your code, especially when it is a long code snippet.

And finally, this forum is for Servlets questions. Your question is not about Servlets, it is about Java in General. So this post really belongs in that forum. I am going to move this thread to that forum for you.

Welcome to JavaRanch, we hope that you enjoy your visits and get lots of answers to help with any of your Java issues, we are here to help.

Mark
 
Asanka Nanayakkara
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi and welcome to the JavaRanch

If you can be specific about the error that will be useful. When do you get the error?. Usualy your compiler shows what is the class it cant find if you get this as a runtime error. But i assume the error you are getting is a compile error. If it is compile time error please check the class name with the file name you save the class.

Cheers
Asanka
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic