'Lib files are listed in MANIFEST.MF and present in lib folder but some of the libs (JavaFX and PostgreSQL) won't load

I have an application that is compiled using Ant on Netbeans 12. The application used to run pretty well with 'java -jar "applicationjar"' command using JRE8 but it does not work using JDK 11 and higher versions of JDK.

All dependent lib files are in my lib folder and I can see references for each lib files in the manifest file but for some reason postgresql and javafx libraries cannot be found at run-time.

I have to include these specific lib files in my classpath and MS Windows cannot take all of them so it is challenging to use it as a standard desktop application.

Your assistance will be much appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source