{"id":776,"date":"2015-07-08T09:23:41","date_gmt":"2015-07-08T08:23:41","guid":{"rendered":"https:\/\/patrick4pitss.wordpress.com\/?p=200"},"modified":"2017-09-19T13:09:33","modified_gmt":"2017-09-19T11:09:33","slug":"how-to-auto-download-jres-from-application-server-for-forms-11g-2","status":"publish","type":"post","link":"https:\/\/pitss.org\/de\/how-to-auto-download-jres-from-application-server-for-forms-11g-2\/","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) 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). The steps below were done using Oracle WebLogic Server 10.3.6 and Oracle Forms 11.1.2.2.0 (the only version of Oracle Forms currently supported with JRE 8):<\/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:PITSSJava8Download<\/p>\n<p><a href=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image2.png\"><img decoding=\"async\" class=\"alignnone wp-image-201 size-large\" src=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image2.png?w=640&#038;h=269\" alt=\"image2\" \/><\/a><\/p>\n<p>3. Navigate to %DOMAIN_HOME%deploymentplansformsapp11.1.2 and make a backup of plan.xml<\/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>\n<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<\/blockquote>\n<p><a href=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb3.png\"><img decoding=\"async\" class=\"alignnone wp-image-202 size-full\" src=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb3.png?w=640\" alt=\"image_thumb3\" \/><\/a><\/p>\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>\n<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=\u201dJava8Download\/*\u201d]\/local-path&lt;\/xpath&gt;<br \/>\n&lt;\/variable-assignment&gt;<\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb4.png\"><img decoding=\"async\" class=\"alignnone wp-image-203 size-full\" src=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb4.png?w=640\" alt=\"image_thumb4\" \/><\/a><\/p>\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 href=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb5.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-204\" src=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb5.png?w=640\" alt=\"image_thumb5\" \/><\/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 href=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb6.png\"><img decoding=\"async\" class=\"alignnone wp-image-205 size-full\" src=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb6.png?w=640\" alt=\"image_thumb6\" \/><\/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 href=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb7.png\"><img decoding=\"async\" class=\"alignnone wp-image-206 size-full\" src=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb7.png?w=640\" alt=\"image_thumb7\" \/><\/a><\/p>\n<p>12. In the top-left corner, click \u201cActivate Changes\u201d to publish the changes.<\/p>\n<p><a href=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb8.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-207\" src=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb8.png?w=640\" alt=\"image_thumb8\" \/><\/a><\/p>\n<p>13. After the changes are activated, open up your formsweb.cfg file (located in %DOMAIN_HOME%configfmwconfigserversWLS_FORMSapplicationsformsapp_11.1.2config)<\/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><a href=\"http:\/\/server.domain:8888\/forms\/AliasName\/JRE_file.exe\" rel=\"nofollow\">http:\/\/server.domain:8888\/forms\/AliasName\/JRE_file.exe<\/a><\/p>\n<p>Example: jpi_codebase=http:\/\/server.domain:8888\/forms\/Java8Download\/jre-8u45-windows-i586.exe<\/p>\n<p><a href=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb9.png\"><img decoding=\"async\" class=\"alignnone wp-image-208 size-full\" src=\"https:\/\/patrick4pitss.files.wordpress.com\/2015\/07\/image_thumb9.png?w=640\" alt=\"image_thumb9\" \/><\/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 367778.1<\/strong><\/p>\n<p>Thanks to my colleague Scott for composing this information in our knowledge base:<\/p>\n<p><a href=\"http:\/\/pitss.org\/us\/2015\/05\/06\/how-to-auto-download-jres-from-application-server-for-forms-11g\/\" rel=\"nofollow\">http:\/\/pitss.org\/us\/2015\/05\/06\/how-to-auto-download-jres-from-application-server-for-forms-11g\/<\/a><\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/patrick4pitss.wordpress.com\/200\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/patrick4pitss.wordpress.com\/200\/\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=patrick4pitss.wordpress.com&#038;blog=33916245&#038;post=200&#038;subd=patrick4pitss&#038;ref=&#038;feed=1\" width=\"1\" height=\"1\" \/><\/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) using Oracle WebLogic Server. In our &hellip; <a href=\"https:\/\/patrick4pitss.wordpress.com\/2015\/07\/08\/how-to-auto-download-jres-from-application-server-for-forms-11g\/\">Continue reading <span>&rarr;<\/span><\/a><img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=patrick4pitss.wordpress.com&amp;blog=33916245&amp;post=200&amp;subd=patrick4pitss&amp;ref=&amp;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"author":48,"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":[100,81],"tags":[],"class_list":["post-776","post","type-post","status-publish","format-standard","hentry","category-general","category-tech-blog"],"_links":{"self":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts\/776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/users\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/comments?post=776"}],"version-history":[{"count":1,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts\/776\/revisions"}],"predecessor-version":[{"id":16977,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts\/776\/revisions\/16977"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/media?parent=776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/categories?post=776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/tags?post=776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}