Community
Participate
Working Groups
Version: 3.3.0 Build id: I20070821-0800 javadoc tool version used java version "1.3.1_20" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_20-b03) Java HotSpot(TM) Client VM (build 1.3.1_20-b03, mixed mode) Scenario: try to generate the Javadoc using the Generate Javadoc wizard, keeping default settings. when using any javadoc.exe > 1.3.1, no problem when using the 1.3.1 version, nothing gets generated, and I get the following error message: javadoc: invalid flag: -source Looking at the Ant script generated from the wizard: <javadoc access="public" author="true" classpath="." destdir="doc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" source="1.3" (...) Sounds like the -source option is invalid in 1.3.1 mode. To overcome this issue, go to the last page of the wizard, and set the JRE source compatibility to none (- in the combo).
If you work with Javadoc commands from JDKs that don't support -source, you can set the source toggle to '-' (3rd page). Then, no '-source' will be generated. Neither on the command line nor in the ANT script. I just tried this, and it works as expected.