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.