JavaFX - IDE and executable jar performance

I used both NetBeans and Intellij to create new JavaFX HelloWorld projects using Java 7_21. It works successfully both in the IDE and, most importantly, in both cases, the application runs almost instantly inside the IDE. Then I create an executable jar from each project. He successfully creates a jar, and when I start it (either by double-clicking on it, or from the command line), it works correctly, but it takes about 10 seconds to complete both tasks. At the command line, I enter "java -version" and this confirms that I am running Java 7_21 64bit. Does anyone know why an executable banner runs so slow while HelloWorld applications run so fast in an IDE? Thanks

+4
source share
1 answer

See the JavaFX Deployment Troubleshooting Guide :

If your application starts slowly, it may be due to network configuration. Try disabling the autoproxy configuration by passing -Djavafx.autoproxy.disable=true to see if it helps.

+1
source

Source: https://habr.com/ru/post/1487747/


All Articles