CreateProcess error=206, The filename or extension is too long when running main() method
There is no simple (as in a couple of clicks or a simple command) solution to this issue.
Quoting from some answers in this bug report in Eclipse.org, these are the work-arounds. Pick the one that's the least painful to you:
- Reduce the classpath
- Use directories instead of jar files
- Use a packed jar files which contains all other jars, use the classpath variable inside the manifest file to point to the other jars
- Use a special class loader which reads the classpath from a config file
- Try to use one of the attached patches in the bug report document
- Use an own wrapper e.g. ant
Update: After July 2014, there is a better way (thanks to @Brad-Mace's answer below:
If you have created your own build file instead of using Project -> Generate Javadocs
, then you can add useexternalfile="yes"
to the Javadoc task, which is designed specifically to solve this problem.
If you create your own build file rather than using Project -> Generate Javadocs
you can add useexternalfile="yes"
to the javadoc
task, which is designed specifically to solve this problem.
I faced this problem today and I was able to solve it using this Gradle plugin
It's github url is this
IF you, like me, have no idea what Gradle is but need to run a backend to do your front end work, what you need to do is find the build.gradle file that is being called to start your BE server and add this to the top:
plugins {
id "ua.eshepelyuk.ManifestClasspath" version "1.0.0"
}