Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX program start takes 12 Seconds when online

Tags:

java

javafx-2

I made a simple "Hello World" app from the E(fx)clipse Tutorial 1.

When starting the jar from the dist folder, my system took more than 12 Seconds. I verified that with the oracle sample apps, which behave identical.

Start up time is less than a second when I disable Wifi, thus no internet connection available. Running a Windows 7 (64 Bit) machine with Java x86, Version 7.

Is this a personal problem or can I expect this behavior on all machines where the app is deployed? Then JavaFX would be useless. Swing jars start instantly.

like image 468
Gunnar Bernstein Avatar asked Nov 12 '22 21:11

Gunnar Bernstein


1 Answers

The problem is most likely the proxy resolution which was fixed with https://bugs.eclipse.org/bugs/show_bug.cgi?id=408397. If you are not on the nighlty tooling (http://downloads.efxclipse.bestsolution.at/downloads/nightly/sdk) you'd have to modify the build.xml by hand adding "<attribute name="JavaFX-Feature-Proxy" value="None"/>" to the <manifest> tag

like image 199
tomsontom Avatar answered Nov 15 '22 00:11

tomsontom