0 Replies Latest reply on Aug 21, 2013 11:12 AM by PedroBettReis

    JavaFX app keeps using JavaFX 2.2.2 runtime despite forced to 2.1 in jnlp

    PedroBettReis

      We have a javafx application hosted in a web page.
      The javascript used to deploy is configured like this:

      dtjava.embed(
              {
             /** some parameters **/
                  }
              },
              {
                  javafx : '2.1*',
             jvm: "1.6.0_30+"    
              },
              {
        onJavascriptReady: applicationReady,
        onGetSplash: getSplash
        }
        );
      
      
      

       

      The jnlp:

      <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="App.jnlp">
        <information> 
          <offline-allowed/>
        </information>
        <resources>
          <jfx:javafx-runtime version="2.1*" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
        </resources>
        <resources>
          <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
        </resources>
      <security>
        <all-permissions/>
      </security>
        <applet-desc  width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback"  name="App" >
          <param name="requiredFXVersion" value="2.1*"/>
        </applet-desc>
        <jfx:javafx-desc  width="800" height="600" main-class="com.MainEngine"  name="" App/>
        <update check="background"/>
      </jnlp>
      
      

       

      Has you can see, the javafx runtime is defined as 2.1*.
      Still, at startup the java console shows:

      Match: digest selected JREDesc: JREDesc[version 1.6+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0:
          platform is: 1.6
          product is: 1.6.0_37
          location is: http://java.sun.com/products/autodl/j2se
          path is: C:\Program Files\Java\jre6\bin\javaw.exe
          args is: null
          native platform is: Windows, x86 [ x86, 32bit ]
          JavaFX runtime is: JavaFX 2.2.21 found at C:\Program Files\Oracle\JavaFX 2.2 Runtime\
          enabled is: true
          registered is: true
          system is: true
      
      

       

      Shouldn't the java webstart download, install and run the JavaFX runtime 2.1?