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.
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database

This thread has been viewed 634 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 17, 2019 16:56:26.