Skip to content
- Go to Project > Properties: Java Build Path, tab Libraries
- Select the JRE > Is modular node and click Edit…
- Go to the tab Details
- In the Added exports section click Add…
- Enter the following:
- Source module:
jdk.compiler
- Package:
com.sun.tools.javac.tree