score:17
This eclipsecoding FAQ page does confirm your diagnostic:
When the
CLASSPATH
gets too long, the program cannot be launched (at least under Windows) - try to shorten your classpath. In the case of a plugin, you can try to remove unnecessary required plugins.
And you have here a thread detailing the log errors.
Since you can launch Eclipse, but not the application, I would check if you don't have too many plugins included in your launch configuration. Could you check if you have added only the required plugins?
score:0
I encountered the same problem. Trying to run a scrapbook page would not succeed, whatever I tried. I checked the contents of my .plugins direcotry in the workspace. I noticed a lot of index files in de org.eclipse.jdt.core directory. I renamed this directory and now a scrapbook process can be run again.
score:0
One solution I have for Eclipse, is to close certain projects that are enabled through Workspace Resolution, and instead have these be resolved from your local Maven repository. It worked for me anyways
score:0
I have faced the same issue, project refereed un-build jar files. Suppose tools-1.6.jar is builded and added as dependency. Later there might be changed the source code for tools-1.6.jar and not performed #mvn clean install.
I have done clean build and updated maven dependency, error was resolved.
score:1
Use a dynamic link which can be easily created with juncion (http://technet.microsoft.com/en-us/sysinternals/bb896768). Create the link for your project and add it to eclipse through that. usage e.g.: md d:\shortname junction d:\shortname\ d:\my\very\long\long\long\long\long\long\projectnamefolder
score:1
This is a known bug in Eclipse: Bug 327193 - [patch] Launching command line exceeds the process creation command limit on Windows
It will be fixed with Eclipse e4 4.3 released in 2013. It wasn't deemed important enough to fix in 3.4.2. But in the attachments to the bug, you can find a couple of replacement classes to fix your version of Eclipse.
score:1
Since I had the same problem with Eclipse Helios (the only version officially supported by our department) and I had a great difficulty solving the problem, here is the solution:
Install the latest Eclipse (in my case 4.3.2 did the work).
This issue had been reported as an Eclipse Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=327193 and it is now fixed.
Hope this helps future users that will reach this page.
score:2
I was dealing with the same problem on Eclipse, so, for that reason I decided to give a try to the same project on Intellij, just to know if it was a IDE problem.
Surprisingly, Intellij detects this problem (long classpath) and shows me a dialog, recommending me to use dynamic classpath feature. After enable this option, the problem gone.
What dynamic.classpath flag does is: What does the dynamic.classpath flag do? (IntelliJ project settings)
So, now my question is: Is there a way to do the same on Eclipse? seems to be a simple and elegant solution to this problems, instead of removing manually all those dependencies that are not necessary.
score:2
This is definitely an issue with the classpath being too long causing the command line to exceed it's maximum limit. to resolve, shorten your classpath. If you are using Maven (like I was - e.g. in Jive development ) then change the location of your .m2 by changing the maven settings.xml
<settings>
<localRepository>c:/.m2/repository</localRepository>
</settings>
and then move your repository there from the user directory, but ensure that the settings.xml and settings-security.xml (if applicable) are still in the User directory. This way the class path will no longer show c:\Documents and Settings\username.m2 over and over but rather c:.m2 allowing a significant decrease in classpath and thus command length. Remember that in windows you cannot create a directory (by yourself) with name .m2, and so you have to cut the directory, paste in in c: and then copy it back into your user folder
score:13
As a workaround:
- Open your eclipse run configuration for the task that is failing.
- Choose the classpath tab, select the default classpath, click the "Edit.." button
- Check the "Only include exported entries" checkbox.
This allowed me to get around this problem on Eclipse 3.6 (Helios)
Source: stackoverflow.com
Related Query
- Fail to launch application (CreateProcess error=87), can't use shorten classpath workaround
- How to use variables for classpath definition in Eclipse launch configurations?
- How to use an existing database with an Android application
- Add application launch shortcut in Eclipse?
- How do I specify an extra folder to be on the classpath for gradle's application plugin 'run' task?
- PhoneGap Android: How to force Application to use icons from asset\www\res instead res\drawable folder?
- How to use JavaFX Preloader with stand-alone application in Eclipse?
- How to use the eclipse launch configuration string prompt for two values?
- Use Eclipse classpath variable to replace absolute "sourcepath" path?
- use eclipse classpath in ant tasks
- disable eclipse warning "Projects must be referenced by an EAR or a WAR to use classpath publish/export dependencies..."?
- Eclipse IDE fail to launch with JVM Terminated. Exit code=-1
- Eclipse Hot Code Replace Fail - republish web application
- How to use Eclipse for remote debugging of a Google App Engine (GAE) application
- Clearing Eclipse's 'application cache' when performing launch (Run/Debug) for Eclipse Application
- When I debug my application I get frequently Launch error: Failed to connect to remote VM
- can Eclipse Che be used for traditional monolithic application development? Application that does not make use of Docker
- Cannot launch eclipse rcp application in Juno
- Use org.eclipse cut/copy/paste in custom RCP application
- can I use the eclipse .classpath file to set classpaths and launch a jar from command line?
- Use webapp classpath using JavaCompiler in Tomcat within Eclipse with Maven
- Eclipse: missing eclipse application launch configuration
- How to launch ATG application from Eclipse?
- "Installation or uninstallation is not working temporarily" error when trying to launch Tizen watch application from Tizen SDK
- Unable to launch java application in eclipse after mercurial clone
- Is it possible to use Eclipse Editor in my application
- Why does Connection to SQLite fail although I added jar file to classpath (Eclipse)?
- How to exclude a test from a test application using eclipse android-junit launch configuration
- GWT causes Eclipse to fail to launch on Windows XP
- Application stopped unexpectedly on launch - no compilation errors in Eclipse
More Query from same tag
- Eclipse: Native proxy setting goes missing, breaking network connectivity
- Maven M2Eclipse plugin not working
- How to add profiles to default maven goals in Eclipse?
- Eclipse plugin for LESS: How to hide errors of CSS frameworks?
- Android Caused by: java.lang.NullPointerException
- how to test spring web application in jmeter
- generate an input file for each map task
- OSB on Eclipse Indigo
- Java HTTPPost Request Return HTTP Error 500
- Packaging java project
- Is it possible to import/run object files in eclipse?
- Cannot detect Sony Xperia in Eclipse
- Vaadin can't save design, throws an error
- Eclipse. Saving workspace takes forever
- How can I create a class that will compute the area and circumference of a circle and send the results using eclipse?
- application closing unexpectedly with very simple code
- How to setup Eclipse for C/C++ in MAC
- The name of the project must be... issue
- ResourceBundle Editor disables basic functions in Spring Tool Suite
- Java JAI access error in Eclipse
- Deploying to Glassfish via Eclipse
- How to enable/disable sound from ToggleButton?
- getNextEntry() doesn't display folder as an entry?
- Fresh Android SDK emulator fails to connect though simple app
- Mapreduce-java: calcutaing average for array list
- Android sdk manager doesnt download packages
- Subversion failing to find correct repo location
- android eclipse problem with R.java
- Difference between private and public targets in ant scripts
- Offline Eclipse plugin installation never finish