File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Class not found Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark " Class not found Exception" Watch " Class not found Exception" New topic
Author Class not found Exception

Ayyappan Selvaraj
Ranch Hand

Joined: Sep 20, 2004
Posts: 63
Friends, Im trying to run a method in my Junit class ", but I get the following exception. Im using Eclipse. In other projects of the eclipse, I am not facing such issue. Please suggest what can be done..

Silas Christiansen

Joined: May 23, 2007
Posts: 1
Did you figure out what was wrong? I am having the same issue.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12954
The most likely cause is that the compiled class file is not where it is supposed to be. That would be the first thing to check.

Since that is a URLClassLoader you can check the URLs it is using to search for classes. Perhaps it is not being handed all the appropriate URLs.

I agree. Here's the link:
subject: Class not found Exception