How to tell eclipse to add-exports when compiling

前端 未结 2 1051
予麋鹿
予麋鹿 2020-12-17 01:37

Is it possible to tell eclipse to add the following command line option: --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED when compiling.

相关标签:
2条回答
  • You can add the --add-exports jdk.compiler/.... options on VM Arguments as shown below.

    0 讨论(0)
  • 2020-12-17 02:13
    1. Go to Project > Properties: Java Build Path, tab Libraries
    2. Select the JRE > Is modular node and click Edit...
    3. Go to the tab Details
    4. In the Added exports section click Add...
    5. Enter the following:
      • Source module: jdk.compiler
      • Package: com.sun.tools.javac.tree

    0 讨论(0)
提交回复
热议问题