The jpi_codebase parameter in formsweb.cfg is the parameter which specifies which Java runtime that Forms uses when running Forms for the first time. By default, the parameter is only set in the default section and is set to http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,12. When using the default settings, the JRE which Forms chooses to look for is random. Most likely (for what we have seen), it will look for Java Plug-in 6 update 25. If you have installed Oracle Forms 11.1.1.6 or 11.1.2.1, JRE 1.6.0_25 is not a supported JRE; this results in a problem.

You can specify a different URL in the jpi_codebase parameter in either the default section or your application’s section in formsweb.cfg. Using the following schematic will allow you to choose which JRE to use:

jpi_codebase=http://javadl-esd.sun.com/update/1.6.0/jinstall-6u#-windows-i586.cab#Version=1,6,0,#

Here are some examples:

Use JRE 1.6.0_24: jpi_codebase=http://javadl-esd.sun.com/update/1.6.0/jinstall-6u24-windows-i586.cab#Version=1,6,0,24

Use JRE 1.6.0_29: jpi_codebase=http://javadl-esd.sun.com/update/1.6.0/jinstall-6u29-windows-i586.cab#Version=1,6,0,29

Use JRE 1.6.0_35: jpi_codebase=http://javadl-esd.sun.com/update/1.6.0/jinstall-6u35-windows-i586.cab#Version=1,6,0,35

 

Reference: https://forums.oracle.com/forums/thread.jspa?threadID=2391055