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 "188.8.131.52" on the rPi. Also running Java8 on MacOS.