Skip to content

javadoc: error - invalid flag: -d #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
priyeshshah11 opened this issue May 16, 2020 · 4 comments
Closed

javadoc: error - invalid flag: -d #13

priyeshshah11 opened this issue May 16, 2020 · 4 comments

Comments

@priyeshshah11
Copy link

Tried using javadoc-coverage with gradle as per the steps in the README.
Get the following error : javadoc: error - invalid flag: -d

Note: Running javdaoc without the coverage doclet works fine.

Is this a known issue? Couldn't find much support elsewhere.

@yixqiao
Copy link

yixqiao commented May 28, 2020

I'm having the exact same problem.
Javadoc is also giving this warning:
javadoc: warning - The old Doclet and Taglet APIs in the packages com.sun.javadoc, com.sun.tools.doclets and their implementations are planned to be removed in a future JDK release. These components have been superseded by the new APIs in jdk.javadoc.doclet. Users are strongly recommended to migrate to the new APIs.

EDIT: it might be due to using Java 9 (see this issue).

@priyeshshah11
Copy link
Author

I'm having the exact same problem.
Javadoc is also giving this warning:
javadoc: warning - The old Doclet and Taglet APIs in the packages com.sun.javadoc, com.sun.tools.doclets and their implementations are planned to be removed in a future JDK release. These components have been superseded by the new APIs in jdk.javadoc.doclet. Users are strongly recommended to migrate to the new APIs.

EDIT: it might be due to using Java 9 (see this issue).

I am using Java 11.

@yixqiao
Copy link

yixqiao commented May 29, 2020

I got javadoc-coverage to work by using it within a Java 8 environment (I also usually use Java 11).
I happened to have a conda environment with Java 8, so I ran it within the environment, and everything worked as expected.
A better idea for using Java 8 would probably be using sdkman as described here.

@manoelcampos
Copy link
Owner

manoelcampos commented Jun 2, 2020

Hello guys, sorry for the late reply, but I'm been very busy these days.
This is an issue with newer JDK versions.
Check #12 for details.
Unfortunately, I do not have time to make the changes to support JDK9+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants