我的JavaFX应用程序启动速度总是比Swing应用程序慢得多。比可接受的小应用程序慢得多。
这是“正常的”,还是我必须在某个地方做出改变?
编辑:我听说了一些可能影响JavaFX应用程序启动时间的代理问题,但我不知道如何调试。
发布于 2013-12-17 02:41:21
基于您的评论,我发现缓慢问题是由自动代理配置引起的。
NetBeans 7.4有一个解决这个问题的选项。这是一个新的选择。我认为它在NetBeans 7.3中没有出现。

检查生成的jar,将选项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.https://stackoverflow.com/questions/20599322
复制相似问题