【发布时间】:2017-09-21 02:59:50
【问题描述】:
我曾经在使用 Maven 编译我的 JavaFX 项目时包含 jfxrt.jar:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin}</version>
<configuration>
<source>${maven.compile.source}</source>
<target>${maven.compile.target}</target>
<compilerArguments>
<bootclasspath>${sun.boot.class.path}${path.separator}${shuttlefx.jre}/lib/jfxrt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
但是我还需要在最新的 Oracle JDK 8 版本中添加 bootclasspath 参数吗?
【问题讨论】:
-
在 Oracle JDK8 中,它不再位于
lib中,而是位于lib/ext中,这是默认引导类路径的一部分。我不使用 Maven 进行项目构建,但据我了解,您不再需要bootclasspath元素。
标签: java maven javafx maven-compiler-plugin