While running Junit if you are facing any error like this
Cannot run program "C:\Program Files\Java\jdk1.6.0_30\jre\bin\javaw.exe" (in directory "E:\Amit\Iworkspace\SpringMVC"): CreateProcess error=87, The parameter is incorrect
Then to resolve this you need to follow some simple steps:
1)-Go to this link https://bugs.eclipse.org/bugs/show_bug.cgi?id=327193 download
bug327193_3.4.2_hack.zip from attachment section.
2)- Back up existing eclipse/plugins/org.eclipse.jdt.launching_3.*.*.jar
3) Copy and paste classes and patch.txt from the attached patch to org/eclipse/jdt/internal/launching in your org.eclipse.jdt.launching JAR (replace existing files)
4) (optional) Edit the META-INF /MANIFEST.MF file in your org.eclipse.jdt.launching JAR file by removing everything starting from the first "NAME:" entry. Make sure you leave two (2) line break characters at the end of the file.
Re-start eclipse
Thank Sir,
ReplyDeleteThanks for sharing this tutorial