Hello Code Ranchers,
When I attempt to compile a java FX project on raspberry Pi, I get the message, "Error: Could not find or load main class GUI", where GUI is my main class.
I am coding on MacOS with NetBeans and compling to Raspberry Pi over SSH. See here: https://www.instructables.com/id/Efficient-Development-of-Java-for-the-Raspberry-Pi/
My program compiles perfectly on MacOS in NetBeans. Compiling over SSH results in the error. A runnable JAR is generated on the rPi when I try to compile over SSH. When I try to run this JAR in terminal with "java -jar WITPhoneHome.jar", I get the same error.
I am running java version "126.96.36.199" on the rPi. Also running Java8 on MacOS.
I manually installed Java8 to rPi from here: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Any suggestions are welcomed.