Forums Register Login

class not found error

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Pls check if your compiled java class file is in the classpath or not.

Thanks,
Gayathri.
+Pie Number of slices to send: Send
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:
UseRealWords

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.
-Ben
+Pie Number of slices to send: Send
Also, until we know if this is a web app or not, we can't really advise the original poster on classpath issues.
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 731 times.
Similar Threads
junit AssertionFailedError
Read a MSProject 2007 with mpxj
Class and interface
is it a compile time error or runtime error?
private
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:27:51.