My problem is the following: I cannot run .jar files built with java 1.8 after I installed Java 10.
In console, java -version shows:
java version "10.0.2" 2018-07-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
When I double click the .jar, it does not start, and when I run it from console with java -jar APP.jar, then I get following error: Missing JavaFX application class feedmeclient.FeedMeClient
Interesting thing is that IT WORKS if I revert to Java 1.8 or if I call java 1.8 with full path in console like this: "C:\Program Files (x86)\Java\jre8u162\bin\java.exe" -jar APP.jar, then it works with no problem.
APP.jar was built with NetBeans 8.2 Shouldn't Java be backward compatible?
The .jar file contains the MANIFEST and it looks like this:
Manifest-Version: 1.0
Implementation-Title: FeedMeClient
X-COMMENT: Main-Class will be added automatically by build
Implementation-Version: 1.0
Permissions: sandbox
Codebase: *
JavaFX-Version: 8.0
Class-Path: lib/CustomFXComponents.jar lib/FeedMeDataLayer.jar lib/com
mons-io-2.4.jar
Created-By: JavaFX Packager
Implementation-Vendor: bostinac
Main-Class: feedmeclient.FeedMeClient