Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCreateProcess 206 error when Run As (long classpath problem)
https://www.eclipse.org/forums/index.php/mv/msg/242118/729049/#msg_729049
I am am trying to execute Run As (for executing JUnit tests) for J2EE project in Eclipse running on Windows Vista but I get error:
Cannot run program "C:\Program Files (x86)\Java\jre6\bin\javaw.exe" (in directory "C:\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 - it is filed as Netbeans Bugzill bug id=200790.
They are saying that run configuration processes the list of libraries and add the result to the classpath and this classpath can become too long for Windows. So - I guess - this is the problem of Eclipse "Run As..." or at least - the problem of configuration of this plugin.
But what options I have? How I can alternatively inform javaw about all the necessary libraries if not with classpath command option?
I guess that this problem should be fairly common because J2EE projects usually contains lot of jars - hot to Run such projects from Eclipse?
Thanks in advance!]]>Thomas Adler2011-09-24T21:21:21-00:00Re: CreateProcess 206 error when Run As (long classpath problem)
https://www.eclipse.org/forums/index.php/mv/msg/242118/760556/#msg_760556
Were you able to narrow down respectively confirm that the cause of this error is truly due to a too long filename/extension?
I'm using Eclipse Indigo SR1 and running into the same issue when I want to run an simple Enterprise Client Application refering to another simple EJB project. I cannot remember having similar issues with earlier versions of Eclipse and Java EE projects importing the JBoss 6.1 runtime libraries.
Any workaround available?
thanks for a short response,
bests,]]>brayan2011-12-02T20:39:25-00:00Re: CreateProcess 206 error when Run As (long classpath problem)
https://www.eclipse.org/forums/index.php/mv/msg/242118/760557/#msg_760557
brayan2011-12-02T20:53:02-00:00Re: CreateProcess 206 error when Run As (long classpath problem)
https://www.eclipse.org/forums/index.php/mv/msg/242118/998683/#msg_998683
We faced the same problem with our environment lately : we couldn't launch any Junit Test from the IDE (Error 206 : "name or extension too long" message).
We work on Win 7 (x64) OS.
We tried anything from reinstalling JDK to updating to new IDE version (STS, Juno, Indigo...) without success.
We finally succeeded by enabling assertions for JUnit : Window -> Preferences -> Java -> JUnit -> Enable "Add '-ea' to VM arguments when creating a new JUnit launch configuration"
This solution is a bit funky as it doesn't answer the "name or extension too long" error message.]]>Sébastien Drouard2013-01-10T13:55:50-00:00