This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 13018
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
It's not a secret anymore!