[英]JavaFX jar running in windows not in Raspberry Raspbian
Im developing a small JavaFX application with Intellij.我用 Intellij 开发了一个小型 JavaFX 应用程序。
I've compiled it to a jar with the Intellij artifacts and it works well in windows both from command line java -jar file.jar
or double clicking the jar.我已经将它编译成一个带有 Intellij 工件的 jar,它在 Windows 中运行良好,无论是从命令行
java -jar file.jar
还是双击该 jar。
The app need to be all day running and I chose to use a Raspberry because I think its the cheapest way.该应用程序需要全天运行,我选择使用 Raspberry,因为我认为这是最便宜的方式。
I installed it on the Raspbian the JDK 8 from Oracle the last ARM version in the oracle website Linux ARM 32 Hard Float ABI 77.78 MB jdk-8u111-linux-arm32-vfp-hflt.tar.gz
我将它安装在 Raspbian JDK 8 上,Oracle 网站上的最后一个 ARM 版本
Linux ARM 32 Hard Float ABI 77.78 MB jdk-8u111-linux-arm32-vfp-hflt.tar.gz
The JVM is working and shows the correct version with java -version
. JVM 正在工作并使用
java -version
显示正确的版本。 I assume the installation is OK but when I try to run the jar it says:我假设安装没问题,但是当我尝试运行 jar 时,它说:
Error: Could not find or load main class es.company.MainApp
错误:无法找到或加载主类 es.company.MainApp
The Manifest.MF
is correct and the Intellij JDK version is 1.8.0_66 Manifest.MF
正确,Intellij JDK 版本为 1.8.0_66
Yes that is right, Starting with 8u33, JavaFX has been removed from both Oracle JDK for ARM and Oracle Java SE Embedded.是的,从 8u33 开始,JavaFX 已从 Oracle JDK for ARM 和 Oracle Java SE Embedded 中删除。 Please find the discussion https://www.raspberrypi.org/forums/viewtopic.php?f=81&t=97367&p=678791#p678791 This is how you can download and install javafx on Raspberry - https://wiki.openjdk.java.net/display/OpenJFX/OpenJFX+on+the+Raspberry+Pi
请找到讨论https://www.raspberrypi.org/forums/viewtopic.php?f=81&t=97367&p=678791#p678791这是您如何在 Raspberry 上下载和安装 javafx - https://wiki.openjdk.java .net/display/OpenJFX/OpenJFX+on+the+Raspberry+Pi
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.