Running Forms and Webutil with Sun Java 5.0.6 instead of Jinitiator.
And you know what: it’s faster and has more functionality I’ve been told…
First you need the java-file. In this case: jre15006.exe.
Initially I found it hard to find on the site of Sun – didn’t even know the name of the file I was looking for…
Found it at http://www.muangyacctv.com/download/JAVA but if you keep searching the Sun-website, you will find it here:
Then: where shall I put the file? The application server expects the file in /forms/jinitiator.
In forms.conf this is defined as:
AliasMatch ^/forms/jinitiator/(..*) “/software/oracle/middle/jinit/$1”
Next thing is the configuration in formsweb.cfg (at the end of this post is the configuration what worked for me,
but first some explanation, quoted from some notes):
# baseHTMLjinitiator
# Suppose the old [webutil] configuration in formsweb.cfg contains:
baseHTMLjinitiator=webutiljini.htm
# Change this in [sunwebutil] to:
baseHTMLjinitiator=webutiljpi.htm
# IE : Used to enable the browser’s default JRE
IE=native
# jpi_classid
# This parameter value is used by Microsoft Internet Explorer to determine if the desired plug-in is installed.
# The value is recorded in the Windows Registry during the JRE/JPI or Jinitiator installation.
# When the browser sees this ID number it looks in the Registry to determine if it exists.
# If the ID is not found, the browser assumes that the needed plug-in has not been installed.
# The exact value will differ depending on the JRE or Jinitiator version selected for use.
# The only exception is the Sun “dynamic” clsid, which is used in the example below.
# This special value forces the use of the newest Sun JRE installed on the local machine.
# In other words if Sun 1.4.2_06 and 1.4.2_15 are installed, the newest (1.4.2_15) will be used.
# Example
# Used for Sun JRE/JPI Dynamic CLSID
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
# Used for Sun JRE/JPI “Family” CLSID (See Note 461257.1)
jpi_classid=clsid:CAFEEFAC-0015-0000-FFFF-ABCDEFFEDCBA
# Used for Oracle Jinitiator
jinit_classid=clsid:CAFECAFE-0013-0001-0028-ABCDEFABCDEF
# jpi_codebase
# (Jininitiator equivalant jinit_exename)
# This parameter value is used to locate the installable plug-in when jpi_classid cannot be found on the local system.
# When the browser is unable to locate the jpi_classid, it will automatically download and execute the file noted in jpi_codebase.
# This starts the installation process.
# you will likely be prompted repeatedly to reinstall.
# This is because you are installing a version different than that which is identified in jpi_classid.
# Also, be aware that only Internet Explorer supports this semi-automatic installation feature.
# EXAMPLE:
# Used for Sun JRE/JPI
# If no version of Java plugin is installed or a version less than the major version of the java plugin family is installed on
# the client PC then automatic redirection to the .cab files for the latest version in the java family specified by Version in
# codebase parameter in formsweb.cfg file will be done.
jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2_15-windows-i586.cab#Version=1,4,2,15
# Used for Oracle Jinitiator
jinit_exename=jinit13128.exe#Version=1,3,1,28
# Notice the minor difference between the Sun JRE example and the Oracle Jinitiator example. It is assumed that Jinitiator’s installable file is located locally in the Oracle Home (in the \jinit directory).
# jpi_mimetype
# (Jininitiator equivalant jinit_mimetype)
# This parameter value is primarily used by browsers other than Internet Explorer to determine which plug-in is required based on the content type. For example, Netscape, Firefox, etc. This is used in a similar way to jpi_classid for Internet Explorer.
# EXAMPLE:
# Used for Sun JRE/JPI
jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_15
# Used for Oracle Jinitiator
jinit_mimetype=application/x-jinit-applet;version=1.3.1.28
# jpi_download_page
# (Jininitiator equivalant jinit_download_page)
# This parameter value is used by browsers other than Internet Explorer. Because other browsers do not support automatic plug-in installation in a manner similar to Internet Explorer, users must be redirected to a web page which will offer them an option to manually install the needed plug-in. The jpi_download_page can point to any valid web page you desire. For example, if you would prefer that end users do not perform the installation, you can point to a static web page which instructs them to contact the Administrator for assistance.
# EXAMPLE:
# Used for Sun JRE/JPI
jpi_download_page=http://java.sun.com/j2se/1.4.2/download.html
# Used for Oracle Jinitiator (download page you have to design it yourself)
jinit_download_page=/forms/jinitiator/us/jinit_download.htm
How does it looks like in formsweb.cfg, and worked for me (in my open environment anyway), with forms and webutil:
By the way, I needed an add-on in Firefox to work with Sun:
– Add-ons voor Firefox: 5.0.12
https://addons.mozilla.org/nl/firefox/addons/versions/5578
[sunwebutil]
IE=native
baseHTMLJInitiator=webutiljpi.htm
baseHTMLjpi=webutiljpi.htm
# Used for Sun JRE/JPI Dynamic CLSID
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
# for IE browsers, internet:
# jpi_codebase=https://java.sun.com/update/1.5.0/jinstall-1_5_0_06-windowsi586.cab#Version=1,5,0,6
# for IE browsers, local machine:
jpi_codebase=http://ltoa.owinsp.nl:7778/forms/jinitiator/JRE15006.exe#Version=1,5,0,6
# for Firefox/Netscape/IE browsers
# jpi_mimetype=application/x-java-applet;jpi-version=1.5.0_06
# better perhaps:
jpi_mimetype=application/x-java-applet;version=1.5
# for Firefox/Netscape browsers
# jpi_download_page=https://java.sun.com/j2se/1.5.0/download.html
# specific 5.0.6 :
jpi_download_page=https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProduct
Detail-Start?ProductRef=jre-1.5.0_06-oth-JPR@CDS-CDS_Developer
# Webutil:
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
# archive including rich text editor
archive=frmall.jar,hst65.jar,HTMLEditorLight.jar
# application-specific
otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% query_only=%query_only% quiet=%q
uiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log%
form=<application>.fmx
term=/software/dutrf65w.res
envFile=/software/ontw/<application>/<application>.env
width=900
record=forms
tracegroup=33,35,39,45,64-69,98,101
height=700
separateFrame=true
splashScreen=no
lookAndFeel=Generic
background=NO
pageTitle=Start <application>
# to find *.gif files in jars
imageBase=codebase
Sources:
Note 290323.1 How to Run WebUtil with Sun Java Plug-in on MS Windows Clients
Note: 444105.1 How Do The Jinitiator And JPI Parameters Work In A Forms Configuration
Note: 351118.1 How To Use Sun JPI With Forms 10.1.2
Note: 368218.1 How To Configure Forms To Use Any Version Of JRE Installed On The Client Machine
Note: 461257.1 HOW TO CONFIGURE JDK 1.5 PLUGIN SO LATEST VERSION OF 1.5 IS USED WHEN 1.6 IS ALSO INSTALLED
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/using_tags.html#codebase
http://java.sun.com/javase/6/webnotes/family-clsid.html
Leave A Comment