简体   繁体   中英

JavaFX jar running in windows not in Raspberry Raspbian

Im developing a small JavaFX application with Intellij.

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.

The app need to be all day running and I chose to use a Raspberry because I think its the cheapest way.

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

The JVM is working and shows the correct version with java -version . I assume the installation is OK but when I try to run the jar it says:

Error: Could not find or load main class es.company.MainApp

The Manifest.MF is correct and the Intellij JDK version is 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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM