[英]Why is the visible framerate of my JavaFX 2 application so unreliable?
[英]Why is my JavaFX application startup so slow?
我的JavaFX應用程序總是比Swing應用程序啟動慢得多。 比一個小應用程序可接受的速度慢得多。
這是“正常”還是我必須在某處進行更改?
編輯:我聽說可能會影響JavaFX應用程序啟動時間的一些代理問題,但我不知道如何調試它。
根據您的評論,我發現慢速問題是由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.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.