注意:这个post不能解决我的问题,我是用相同的版本编译和运行的。
我想创建maven Java FX项目。即使我拿他们的示例https://github.com/openjfx/samples/tree/master/HelloFX/Maven在Idea中打开并尝试运行它,我也遵循了这个https://openjfx.io/openjfx-docs/#maven,我得到了
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: C:\Users\force\.m2\repository\org\openjfx\javafx-base\13\javafx-base-13-win.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Unsupported major.minor version 55.0
[ERROR] Command execution failed.正在运行的命令是
"C:\Program Files\Java\jdk-13.0.2\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\me\Development\Java\fxtest "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\lib\idea_rt.jar=52546:C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar" org.codehaus.classworlds.Launcher -Didea.version2019.3.2 clean org.openjfx:javafx-maven-plugin:0.0.3:run怎么啦?为什么我不能运行这个简单的示例项目?
发布于 2020-02-26 22:44:02
您是否正确设置了JAVA_HOME环境变量?
对我来说,当我在eclipse中使用mvn clean javafx:run运行项目时,它是有效的。
https://stackoverflow.com/questions/60415255
复制相似问题