Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes URLClassLoader.java- Class not found Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "URLClassLoader.java- Class not found Exception" Watch "URLClassLoader.java- Class not found Exception" New topic
Author

URLClassLoader.java- 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 "CodesServiceTest.java, 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
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.

Bill
 
 
subject: URLClassLoader.java- Class not found Exception
 
Similar Threads
Junit testing
java.lang.NoClassDefFoundError: junit.framework.Test
Junit 4
Class not found test.TestIndexBean error in Eclipse
EJB Testing using JUnit