我曾经在使用 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 参数吗?
最佳答案
关于java - jfxrt.jar 包含在 Java 8 中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43587918/