CreateProcess error=206 (big classpath issue)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

CreateProcess error=206 (big classpath issue)

Thomas Adler

I am trying to execute TestNG or JUnit tests from Eclipse running on Windows Vista, and I am receiving message:

Cannot run program "C:\Program Files (x86)\Java\jre6\bin\javaw.exe" (in directory "H:\Users\MyName\workspace\MyProject"):
CreateProcess error=206, The filename or extension is too long

My project includes lot of jars and so on, and it can be run on Application Server without errors. I searched Google and the found similar error in a bit different context:

They are saying that "run configuration" processes the list of libraries and adds the result to the classpath but this classpath can become too long for Windows. So - I guess - this is more the problem of Eclipse "Run As..." plugin and not the TestNG, but btw - maybe someone can suggest how to remove this error.

And, as I am new to TestNG - can someone suggest how to run TestNG tests outside Eclipse. I guess it can be painfully, because one needs to transfer all the necessary configuration outside Eclipse to this new environment.

Thanks in advance!