File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

class not found exception

belle springfield
Greenhorn

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

"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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

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

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.

Cheers
Asanka
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class not found exception