Issues with installing JavaFX on first use

Anthony Vanelverdinghe anthony.vanelverdinghe at gmail.com
Tue May 1 10:57:16 PDT 2012


Hello Igor

I filed the reported problems as 2 JIRA issues:
http://javafx-jira.kenai.com/browse/RT-21275
http://javafx-jira.kenai.com/browse/RT-21276

Best regards

   Anthony


Op 1/05/2012 17:30, Igor Nekrestyanov schreef:
> http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp 
>
>
> is a component jnlp file. It is not supposed to be run separately.
> The idea is it needs to be included into application JNLP in order to 
> define where to install required component from if it is missing.
>
> I.e. user is expected to click on BrickBreaker.jnlp that will trigger 
> update request and then above jnlp file will come into play.
> http=>https redirect is something new, let us investigate.
>
> -igor
>
> p.s.
>    Please file bugs as JIRA issues. You may also refer to them in this 
> list but having issue to track helps to resolve them faster.
>
> On 5/1/12 7:16 AM, Jose Martinez wrote:
>> correction.... JRE 7u3 is installed.... sorry about that.
>>   jose
>>
>>
>> ________________________________
>>   From: Jose Martinez<jmartine_1026 at yahoo.com>
>> To: "openjfx-dev at openjdk.java.net"<openjfx-dev at openjdk.java.net>
>> Sent: Tuesday, May 1, 2012 10:08 AM
>> Subject: Re: Issues with installing JavaFX on first use
>>
>> I am having problems myself with the brickbreaker link.
>>
>> Running Windows XP with JRE 6u29 and JRE 7u29 installed and JFX 
>> 2.0.3..... I purposefully did not upgrade to latest to see what 
>> average user would experience.
>>
>> 1)  Click on 
>> http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp
>> 2)  Downloaded JNLP and clicked on it.  Java 7 icon popped up, then 
>> got the following error msg "Unable to launch the application."
>> 3)  Clicking on details showed the following exception....
>>
>> MissingFieldException[ The following required field is missing from 
>> the launch file:<application-desc>|<applet-desc>]
>> at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
>> at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
>> at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
>> at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
>> at com.sun.javaws.Launcher.launch(Unknown Source)
>> at com.sun.javaws.Main.launchApp(Unknown Source)
>> at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
>> at com.sun.javaws.Main$1.run(Unknown Source)
>> at java.lang.Thread.run(Unknown Source)
>>
>>
>>
>> thanks
>> jose
>>
>>
>> ________________________________
>> From: Joe McGlynn<joe.mcglynn at oracle.com>
>> To: Anthony Vanelverdinghe<anthony.vanelverdinghe at gmail.com>
>> Cc: openjfx-dev at openjdk.java.net
>> Sent: Tuesday, May 1, 2012 9:32 AM
>> Subject: Re: Issues with installing JavaFX on first use
>>
>> Anthony, thanks for the detailed report, we will look into that today.
>>
>> Joe McGlynn
>>
>>
>> On May 1, 2012, at 5:02 AM, Anthony Vanelverdinghe wrote:
>>
>>> Hello to all
>>>
>>> I 've encountered 2 issues with installing JavaFX on first use.
>>>
>>> Environment:
>>> OS: Windows Vista Business SP2 32-bit
>>> Java: Java SE 7u4 JRE (Windows x86 Offline (32-bit)) as downloaded 
>>> from here ( 
>>> http://www.oracle.com/technetwork/java/javase/downloads/jre-7u4-download-1591157.html 
>>> )
>>> no other JDK or JRE is installed
>>>
>>> Following are the steps to reproduce:
>>> download&  unzip the JavaFX samples from the Oracle site ( 
>>> http://download.oracle.com/otn-pub/java/javafx/2.1.0-b21/javafx_samples-2_1_0-windows.zip 
>>> )
>>>
>>> Problem 1: open BrickBreaker.jnlp. Now an error comes up saying:
>>> C:\Users\Anthony\javafx-windows-i586__Vlatest.exe is not a valid 
>>> Win32 application.
>>>
>>> The problem, I believe, is the following:
>>> BrickBreaker.jnlp refers to 
>>> http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp
>>> which in turn refers to 
>>> http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/JavaFXRuntimeInstaller.jar
>>> this jar contains a class JavaFXRuntimeInstaller, which contains the 
>>> download locations for the JavaFX installers:
>>>
>>> private static final String DEFAULT_I586_URL = 
>>> "http://download.oracle.com/otn-pub/java/javafx/javafx-windows-i586__Vlatest.exe";
>>> private static final String DEFAULT_X64_URL = 
>>> "http://download.oracle.com/otn-pub/java/javafx/javafx-windows-x64__Vlatest.exe";
>>>
>>> using the first URL to continue my explanation:
>>> http://download.oracle.com/otn-pub/java/javafx/javafx-windows-i586__Vlatest.exe 
>>>
>>> redirects with http code 302 to: 
>>> https://edelivery.oracle.com/otn-pub/java/javafx/javafx-windows-i586__Vlatest.exe
>>> which in turn redirects with http code 302 to: 
>>> http://download.oracle.com/otn-pub/java/javafx/javafx-windows-i586__Vlatest.exe?AuthParam=1335709310_1e63393a9975cbe57e4ae096c1380b6b
>>>
>>> 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 
>>> http://stackoverflow.com/questions/1884230/java-doesnt-follow-redirect-in-urlconnection), 
>>> so JavaFXRuntimeInstaller simply downloads the contents of 
>>> http://download.oracle.com/otn-pub/java/javafx/javafx-windows-i586__Vlatest.exe 
>>> (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