我的JavaFX应用程序始终比Swing应用程序启动慢得多。对于一个小应用程序来说,这比可接受的速度要慢得多。
这是否是“正常”的,还是我需要在某个地方进行更改?
编辑:我听说有一些代理问题可能会影响JavaFX应用程序的启动时间,但我不确定如何调试此问题。
JavaFX-Feature-Proxy: None
已添加到MANIFEST.MF中。
* Run the same application from the command line as
java -jar MyApp.jar
* This way you can see actual exceptions and trace messages (if any).
* Pass "-Djavafx.verbose=true" to enable verbose output from the embedded launcher.
* If your application starts slow, then it could be due to network configuration.
Try disabling the autoproxy configuration by passing "-Djavafx.autoproxy.disable=true" to see if it helps.
-Djavafx.autoproxy.disable=true
这个选项吗?(请参见部署JavaFX应用程序第13.3.1节)。 - MadProgrammer