Issues with installing JavaFX on first use

Anthony Vanelverdinghe anthony.vanelverdinghe at
Sun Apr 29 12:48:31 PDT 2012

Hello to all

I 've encountered 2 issues with installing JavaFX on first use. The 
following are surely not critical bugs, but since Java SE 7u4 is about 
to be released to the masses, it would be good to have these solved soon 
rather than late.

OS: Windows Vista Business SP2 32-bit
Java: Java SE 7u4 JRE (Windows x86 Offline (32-bit)) as downloaded from 
here ( 
no other JDK or JRE is installed

Following are the steps to reproduce:
download & unzip the JavaFX samples from the Oracle site ( 

Problem 1: open BrickBreaker.jnlp. Now an error comes up saying:
C:\Users\Anthony\javafx-windows-i586__Vlatest.exe is not a valid Win32 

The problem, I believe, is the following:
BrickBreaker.jnlp refers to 

which in turn refers to 

this jar contains a class JavaFXRuntimeInstaller, which contains the 
download locations for the JavaFX installers:

private static final String DEFAULT_I586_URL = 

private static final String DEFAULT_X64_URL = 

using the first URL to continue my explanation: 

redirects with http code 302 to: 

which in turn redirects with http code 302 to: 

so JavaFXRuntimeInstaller basically downloads the file at 
DEFAULT_I586_URL to a local file & executes the local file, but:
by default redirects are followed, unless it goes from http to https or 
vice versa (see, 
so JavaFXRuntimeInstaller simply downloads the contents of 
(i.e. nothing) & then executes the empty downloaded file. This results 
in the error above saying the file is not a valid Win32 application.

So the fix should be as simple as eliminating the redirect to a https 
URL in the scenario above.

Problem 2: open BrickBreaker.html & click the Webstart link, now the 
JavaFX 2.0.3 installer is downloaded, instead of the expected JavaFX 
2.1.0 one (note that trying to start the embedded JavaFX application 
does download the JavaFX 2.1.0 installer). I have absolutely no clue why 
this happens, especially since the encoded jnlp_content of the Webstart 
link is exactly the same as both the encoded jnlp_content of the 
embedded JavaFX application & the external BrickBreaker.jnlp file.

Best regards

   Anthony Vanelverdinghe

More information about the openjfx-dev mailing list