B. Stackhouse
B. Stackhouse

Reputation: 597

JavaDoc 18 in Eclipse

Eclipse Version: 2022-03 (4.23.0) jdk-18.0.1.1 Exporting JavaDoc displays following error:

javadoc: error - error: invalid source release: 18
1 error

But using Maven the JavaDoc is processed correctly with no errors.

Any suggestions for how to correct the Eclipse problem would be appreciated. Thanks

Upvotes: 1

Views: 285

Answers (1)

howlger
howlger

Reputation: 34315

Make sure that in the dialog that is shown for Project > Generate Javadoc..., the field Javadoc command refers to the Javadoc executable of a Java 18 JDK.

Upvotes: 2

Related Questions