Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Class not found exception for JUnit
Class not found exception for JUnit [message #668529] Fri, 06 May 2011 06:29
Vishal  is currently offline Vishal Friend
Messages: 3
Registered: May 2011
Junior Member
Hi,
I have been trying to execute for Junit s in eclipse environment.

I have been running the Junit as follows :
Right Click on Junit Test file -> Run As -> Junit Test

On the console I get the error

Class not found packagename.MyJunitTest
java.lang.ClassNotFoundException: packagename.MyJUnitTest
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC lass(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC lasses(RemoteTestRunner.java:425)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196)

Basically it is complaining that it is not able to find the JUnit class file which I am trying to execute.


Java Build path is also set as follows :
Build Path -> Configure Build Path -> Java Build Path -> Source tab

Default Output Folder :
FullPathOfTheProject/target/classes

Any Help here would be appreciated.

Thanks and Regards,
Vishal

Previous Topic:Java 1.6 from eclipse.ini -- how?
Next Topic:text to text
Goto Forum:
  


Current Time: Tue Mar 19 07:47:06 GMT 2024

Powered by FUDForum. Page generated in 0.02927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top