Reputation: 932
I am trying to run a simple FavaFX App on my Raspberry Pi 2 running the newest Raspbian. With the standard Java version:
$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
The App starts and this error shows up
Caused by: java.lang.ClassNotFoundException: javafx.scene.web.WebView
And with this Java Version:
$ /opt/jdk1.8.0_60/bin/java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode)
This Error:
$ /opt/jdk1.8.0_60/bin/java -jar MyApp-0.0.1-SNAPSHOT-jar-with-dependencies.jar
Error: Could not find or load main class org.my.app.Main
The App simply opens a WebView. On My laptop it works just fine.
If you need more information please let me know! Thanks for your help!
Upvotes: 0
Views: 556
Reputation: 24630
First error seems this is a headless Java runtime. Right now I'm reading WebView isn't supported: https://www.raspberrypi.org/forums/viewtopic.php?t=69350&p=553602.
Second error seems your JAR is not correctly build or at least do not contains org/my/app/Main.java
. Check with a ZIP tool that the class is in.
Upvotes: 1