这只是一个“hello world”之类的 spring 应用程序。我收到错误消息:
Information:java: Errors occurred while compiling module 'restjpademo'
Information:javac 9.0.0.1-redhatea was used to compile java sources
Information:30/03/2017 09:01 - Compilation completed with 1 error and 0 warnings in 3s 181ms
Error:java: Illegal char <:> at index 3: jrt:\C:\Program Files\RedHat\java-1.9.0-openjdk-1.9.0.0-1!\java.activation
这是从 openjdk msi 下载的全新安装,在 intelli-j idea 2017.1 中,在 windows 10 教育版(基本上是 10 Pro 但没有 Cortana)上。
这似乎与您选择 openJDK 1.9 时自动生成jdk.table.xml
的 intelli-j配置文件有关:
它始于:
<application>
<component name="ProjectJdkTable">
<jdk version="2">
<name value="9.0" />
<type value="JavaSDK" />
<version value="java version "9.0.0.1-redhatea"" />
<homePath value="C:/Program Files/RedHat/java-1.9.0-openjdk-1.9.0.0-1" />
<roots>
<annotationsPath>
<root type="composite">
<root type="simple" url="jar://$APPLICATION_HOME_DIR$/lib/jdkAnnotations.jar!/" />
</root>
</annotationsPath>
<classPath>
<root type="composite">
<root type="simple" url="jrt://C:/Program Files/RedHat/java-1.9.0-openjdk-1.9.0.0-1!/java.activation" />