Neon: how to run on jdk9?

后端 未结 11 1260
后悔当初
后悔当初 2020-11-27 07:00

Just started playing with jdk9 - and kind-of stuck right at the beginning:

  • downloaded and extracted eclipse-java-neon-m4a-win32
  • installed java 9 supp
11条回答
  •  盖世英雄少女心
    2020-11-27 07:25

    To get rid of the java.lang.ClassNotFoundException: javax.annotation.PostConstruct issue, try adding the following line under -vmargs in your eclipse.ini:

    -Djdk.launcher.addmods=java.annotations.common
    

    (Will change to --add-modules=java.annotations.common in JDK 9 EA build 132)

    See https://bugs.eclipse.org/bugs/show_bug.cgi?id=493761

    UPDATE: Since this answer, more things changed, I am currently running Eclipse with JDK 9 b177 and these added vmargs: --add-modules=java.xml.bind,java.xml.ws.annotation

提交回复
热议问题