{"id":6824,"date":"2015-05-06T17:24:09","date_gmt":"2015-05-06T17:24:09","guid":{"rendered":"https:\/\/pitss.org\/us\/?p=6824"},"modified":"2017-07-12T14:57:22","modified_gmt":"2017-07-12T18:57:22","slug":"download-jres-from-application-server","status":"publish","type":"post","link":"https:\/\/pitss.org\/us\/2015\/05\/06\/download-jres-from-application-server\/","title":{"rendered":"How to Auto-Download JREs from Application Server for Forms 11g"},"content":{"rendered":"<p>Oracle Support document 367778.1 provides a great document explaining how auto-downloading a JRE can be done from Oracle Application Server 10g. The same procedure can also be performed for Oracle Forms 11g (and 11gR2) and 12c using Oracle WebLogic Server.<\/p>\n<p>In our example, we are attempting to have the client auto-download the latest Java 8 update (1.8.0_45). According to Oracle Support note <strong>1926764.1<\/strong>, Oracle has not enabled JRE 8 for auto-download, so these steps are currently the only possible way to auto-download JRE 8. The steps below were done using Oracle WebLogic Server 10.3.6 and Oracle Forms 11.1.2.2.0 (the same can be done for Oracle WebLogic Server 12.2.1.x and Oracle Forms 12.2.1.x):<\/p>\n<p>1. Download a 32-bit JRE from Oracle (example for latest Java 8: jre-8u45-windows-i586.exe)<\/p>\n<p>2. Create a folder in your application server and place the JRE in this location. In our example, we created a folder called C:\\PITSS\\Java8Download<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2015\/05\/image2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2015\/05\/image_thumb2.png\" alt=\"image\" width=\"562\" height=\"239\" border=\"0\" \/><\/a><\/p>\n<p>3. Navigate to %DOMAIN_HOME%\\deploymentplans\\formsapp\\11.1.2 and make a backup of plan.xml (NOTE: In 12c, plan.xml is moved to %DOMAIN_HOME%\\config\\fmwconfig\\deployment-plans\\formsapp\\12.2.1)<\/p>\n<p>4. Open up plan.xml in a text editor.<\/p>\n<p>5. Inside the file, create a new variable for the directory where the folder containing the JRE is located. You may use our example below as a guide:<\/p>\n<blockquote><p>&lt;variable&gt;<br \/>\n&lt;name&gt;vd-C:\/PITSS&lt;\/name&gt;<br \/>\n&lt;value&gt;C:\/PITSS&lt;\/value&gt;<br \/>\n&lt;\/variable&gt;<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2015\/05\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2015\/05\/image_thumb3.png\" alt=\"image\" width=\"409\" height=\"222\" border=\"0\" \/><\/a><\/p><\/blockquote>\n<p>6. Further down in the file, create a new variable assignment containing both the directory specified in the variable above and then the xpath or alias containing the name of the folder which has the JRE inside:<\/p>\n<blockquote><p>&lt;variable-assignment&gt;<br \/>\n&lt;name&gt;vd-C:\/PITSS&lt;\/name&gt;<br \/>\n&lt;xpath&gt;\/weblogic-web-app\/virtual-directory-mapping\/[url-pattern=&#8221;Java8Download\/*&#8221;]\/local-path&lt;\/xpath&gt;<br \/>\n&lt;\/variable-assignment&gt;<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2015\/05\/image4.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2015\/05\/image_thumb4.png\" alt=\"image\" width=\"622\" height=\"135\" border=\"0\" \/><\/a><\/p><\/blockquote>\n<p>7. Save and close the file.<\/p>\n<p>8. Log into your WebLogic Administration Console and go to Deployments.<\/p>\n<p>9. Click \u201cLock &amp; Edit\u201d in the top-left corner.<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2015\/05\/image5.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2015\/05\/image_thumb5.png\" alt=\"image\" width=\"244\" height=\"151\" border=\"0\" \/><\/a><\/p>\n<p>10. In the Deployments page, place a check mark next to \u201cformsapp (11.1.2)\u201d and click \u201cUpdate\u201d.<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2015\/05\/image6.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2015\/05\/image_thumb6.png\" alt=\"image\" width=\"527\" height=\"215\" border=\"0\" \/><\/a><\/p>\n<p>11. Click the radio button next to \u201cUpdate this application in place\u2026\u201d and click \u201cFinish\u201d.<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2015\/05\/image7.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2015\/05\/image_thumb7.png\" alt=\"image\" width=\"511\" height=\"219\" border=\"0\" \/><\/a><\/p>\n<p>12. In the top-left corner, click \u201cActivate Changes\u201d to publish the changes.<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2015\/05\/image8.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 0px;padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2015\/05\/image_thumb8.png\" alt=\"image\" width=\"244\" height=\"151\" border=\"0\" \/><\/a><\/p>\n<p>13. After the changes are activated, open up your formsweb.cfg file (located in %DOMAIN_HOME%\\config\\fmwconfig\\servers\\WLS_FORMS\\applications\\formsapp_11.1.2\\config)<\/p>\n<p>14. Locate your jpi_codebase parameter. Replace the current value with the URL. If you need to, also update your other JPI parameters to use Java 8 (as indicated in the screenshot below) .Use the format below:<\/p>\n<p>http:\/\/server.domain:8888\/forms\/AliasName\/JRE_file.exe<\/p>\n<p>Example: jpi_codebase=http:\/\/server.domain:8888\/forms\/Java8Download\/jre-8u45-windows-i586.exe<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2015\/05\/image9.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2015\/05\/image_thumb9.png\" alt=\"image\" width=\"510\" height=\"202\" border=\"0\" \/><\/a><\/p>\n<p>15. Save and close the file.<\/p>\n<p>16. Restart WLS_FORMS.<\/p>\n<p>After completing the steps above, the next time you run your Oracle Forms application (assuming that JRE 8 has not been installed in your machine), you will be prompted to auto-download Java 8.<\/p>\n<p><strong>Source: Oracle Support note <a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=367778.1\">367778.1<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle Support document 367778.1 provides a great document explaining how auto-downloading a JRE can be done from Oracle Application Server 10g. The same procedure can also be performed for Oracle Forms 11g (and 11gR2) and 12c using Oracle WebLogic Server. In our example, we are attempting to have the client auto-download the latest Java 8 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[22,4,19,71,10],"tags":[],"class_list":["post-6824","post","type-post","status-publish","format-standard","hentry","category-forms","category-install-config","category-unix-linux","category-weblogic-software","category-windows"],"_links":{"self":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/6824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/comments?post=6824"}],"version-history":[{"count":6,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/6824\/revisions"}],"predecessor-version":[{"id":9650,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/6824\/revisions\/9650"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/media?parent=6824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/categories?post=6824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/tags?post=6824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}