Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
Forums Register Login
class not found error
hi all
when i compile java program at compile time there is no errror but in run time i got class not found error

what is the meaning that error
Welcome to JavaRanch.

It generally means that one of the libraries that were in the classpath during compilation are not in the classpath at runtime. Which class is missing? Is its jar file in the WEB-INF/lib directory?
Hi vijayan natarajan

Please tell me that you are amking a command line java program or working on web application.

If you are working on command line single file application. Just check the file name and class name is matching or not(case sensitive).

if it is a web application then put all your lib in WEB-INF/lib directory file
Pls check if your compiled java class file is in the classpath or not.

Gayathri Chowduru,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.
Also, until we know if this is a web app or not, we can't really advise the original poster on classpath issues.
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
two software engineers write a book to save the world!

This thread has been viewed 648 times.

All times above are in ranch (not your local) time.
The current ranch time is
May 23, 2019 21:45:54.