cek*_*ock 12 java startup javafx-2
我的JavaFX应用程序总是比Swing应用程序启动慢得多.比一个小应用程序可接受的速度慢得多.
这是"正常"还是我必须在某处进行更改?
编辑:我听说可能会影响JavaFX应用程序启动时间的一些代理问题,但我不知道如何调试它.
cek*_*ock 13
根据您的评论,我发现慢速问题是由autoproxy配置引起的.
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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4672 次 |
| 最近记录: |