File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes class not found exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "class not found exception" Watch "class not found exception" New topic

class not found exception

belle springfield

Joined: Aug 11, 2004
Posts: 6
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

Joined: Feb 05, 2001
Posts: 17276

"bullets doublezero"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it


Thanks! and welcome to the JavaRanch!


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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.

Asanka Nanayakkara

Joined: Aug 13, 2002
Posts: 10
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.

I agree. Here's the link:
subject: class not found exception
It's not a secret anymore!