WillyRex
Posts: 1
Joined: Sun Jan 15, 2017 8:40 pm

JavaFx Jar Could not find the main class

Sun Jan 15, 2017 8:52 pm

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"
Also intalled the JavaFXPorts from Gluon "JavaFX Embedded SDK 8.60.8 armv6 hard float"

The JVM is working and shows the correct version with java -version.(It says 1.8.0_65-b17) 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


Return to “Java”