I'm having some problems with my build files while running junit tests via ant. The build worked fine until a couple of days ago when I got a "process fork failed" error message. Further down in the stack trace i got:
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_25\jre\bin\java.exe" (in directory "C:\p4work\user\product\aProduct\stdproduct\6.9-MAINT\_tmp_derived\dist"): CreateProcess error=87, The parameter is incorrect
From what I understad so far, the arguments passed to javac are way to long for windows to handle.
I googled some and found this:
Apparently there is a way to pass arguments in a file, but my problems is how to do this with junit in ant? Another solution is to try to shorten the arguements that are passed.
Does anyone recognize this problem?