- This topic has 3 replies, 2 voices, and was last updated 13 years, 9 months ago by support-swapna.
-
AuthorPosts
-
cusdxMemberHi,
My tests were working fine, then after a hiatus I decided to write a new one. I right clicked on the new test and did “Run as … Junit Test” but got:
java.lang.ClassNotFoundException: uk.ac.warwick.mrm.markUpload.ComponentMarkUploaderTest
One of my existing tests was working fine. I then tried a few things like cleaning the project, and now all my tests are suffering from the same problem.
What am I doing wrong?
Zoe
*** Date:
Monday, 7 March 2011 14:51:47 o’clock GMT** System properties:
OS=WindowsVista
OS version=6.1.0
Java version=1.6.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 8.5
Build id: 8.5-20100319*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 8.5
Build id: 8.5-20100319Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\apps\Genuitec\MyEclipse 8.5\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\apps\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup
C:\apps\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-install
C:/apps/Genuitec/MyEclipse 8.5
-configuration
configuration
-vm
C:/apps/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
support-swapnaModeratorcusdx,
Can you answer some questions for me to investigate further?
1) Did you make any updates lately?
2) Clear the error log which is located at <workspace dir>/.metadata/.log. Now try running the test and check the .log file for the errors logged. Please paste them here for me.
3) Can you switch to a new workspace, create a project and check if your tests are running fine ?
4) Here is a thread which discusses solutions for the same issue. Can you check if any of them helps?
http://jira.codehaus.org/browse/MECLIPSE-132Let me know how it works for you.
cusdxMemberThanks, I’ve now figured out the answer – my class was failing to compile because of a red cross in my Java Build Path libraries tab. What I hadn’t fully understood was that the junit tests are compiled on the fly when you right click on them and you get “ClassNotFoundException” if there are any issues with your project. The project was still building successfully.
support-swapnaModeratorcusdx,
Glad that it is working.
Do let us know if you have any other issues. -
AuthorPosts