3 Replies Latest reply: Feb 13, 2013 10:32 PM by HamidHelal RSS

    auto download jre

    user7520001
      hello,
      i want to enable auto download of java jre in users PCs , i read that i have to do something in formsweb.cfg what is exactly and how to do it if the users don't have internet i just want to put a specific jre version in my server then if the user call the forms application for first time it will auto download that jre version to his PC,
      thank you,
        • 1. Re: auto download jre
          HamidHelal
          user7520001 wrote:
          hello,
          i want to enable auto download of java jre in users PCs , i read that i have to do something in formsweb.cfg what is exactly and how to do it if the users don't have internet i just want to put a specific jre version in my server then if the user call the forms application for first time it will auto download that jre version to his PC,
          thank you,
          Hi
          Put your JRE version in a specific location and add this location path as download path in your configuration section. For example, at formsweb.cfg
          jpi_download_page=http://www.oracle.com/technetwork/java/javase/downloads/jre-6u32-downloads-1594646.html
          change the above line to
          jpi_download_page=http://<server_name/IP>:8889/forms/java/jre-6u30-windows-i586.exe#Version=1,6,0,30
          
          above line for jre-6u30-windows-i586.exe
          Hope this helps


          Hamid



          If someone's response is helpful or correct, please mark it accordingly.*
          • 2. Re: auto download jre
            Michael Ferrante-Oracle
            change the above line to
            jpi_download_page=http://<server_name/IP>:8889/forms/java/jre-6u30-windows-i586.exe#Version=1,6,0,30>

            This is not exactly correct. There are at least four entries in formsweb.cfg which are responsible for indicating which JRE version you want to use and where to get it if the wrong one is installed (or not at all).
            .
            <blockquote>
            jpi_download_page is used by non-IE browsers to locate plugins when downloading is necessary. This download must be started manually by the end user. Here is an example:
            <blockquote>jpi_download_page=http://www.oracle.com/technetwork/java/javase/downloads</blockquote>
            jpi_mimetype is used by non-IE browsers to indicate which plugin and version you want to use. If the version information is ommitted, which version of that plugin is installed will be used, assuming one is installed. Here is an example:
            <blockquote>jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_39</blockquote>

            jpi_codebase is used by Internet Explorer (IE) to locate plugins when downloading is necessary. The downloading process will begin automatically when it is determined that the plugin is not installed. Here is an example:
            <blockquote>jpi_codebase=http://javadl-esd.sun.com/update/1.6.0/jinstall-6u39-windows-i586.cab#Version=1,6,0,39</blockquote>
            jpi_classid is used by Internet Explorer to indicate which plugin and version you want to use. Here is an example:
            <blockquote>jpi_classid=clsid:CAFEEFAC-0016-0000-0039-ABCDEFFEDCBA</blockquote>
            </blockquote>
            • 3. Re: auto download jre
              HamidHelal
              change the above line to
              jpi_download_page=http://<server_name/IP>:8889/forms/java/jre-6u30-windows-i586.exe#Version=1,6,0,30>

              This is not exactly correct. There are at least four entries in formsweb.cfg which are responsible for indicating which JRE version you want to use and where to get it if the wrong one is installed (or not at all).
              .
              <blockquote>
              jpi_download_page is used by non-IE browsers to locate plugins when downloading is necessary. This download must be started manually by the end user. Here is an example:
              <blockquote>jpi_download_page=http://www.oracle.com/technetwork/java/javase/downloads</blockquote>
              jpi_mimetype is used by non-IE browsers to indicate which plugin and version you want to use. If the version information is ommitted, which version of that plugin is installed will be used, assuming one is installed. Here is an example:
              <blockquote>jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_39</blockquote>

              jpi_codebase is used by Internet Explorer (IE) to locate plugins when downloading is necessary. The downloading process will begin automatically when it is determined that the plugin is not installed. Here is an example:
              <blockquote>jpi_codebase=http://javadl-esd.sun.com/update/1.6.0/jinstall-6u39-windows-i586.cab#Version=1,6,0,39</blockquote>
              jpi_classid is used by Internet Explorer to indicate which plugin and version you want to use. Here is an example:
              <blockquote>jpi_classid=clsid:CAFEEFAC-0016-0000-0039-ABCDEFFEDCBA</blockquote>
              </blockquote>
              Hi Michael Ferrante,

              Thanks for your clarification. Exactly thread issue is JRE download without Internet.

              What i mention is for non-IE browsers

              For IE browsers. it's need
              jpi_codebase=http://<server_name/IP>:8889/forms/java/jinstall-6u30-windows-i586.cab#Version=1,6,0,30
              in place of
              jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstal#l-1_6_0-windows-i586.cab#Version=1.6.0_30-b07
              thanks..