Overblog Suivre ce blog
Editer l'article Administration Créer mon blog
26 décembre 2006 2 26 /12 /décembre /2006 17:46


Here is a Java bean that allows to have an enhanced Web Browser.
It is a full Web browser that can handle Javascript and display Flash animations.

The material comes from a sourceforge project:

Enhanced Web Browser

It can accept both http url and local machine html file names.

It needs, at least, a 1.4 JRE so the Sun Java plug-in, so that it won't run with the JInitiator.

The Java code


The implementation class of the Bean Item


The methods you can call

  • Get the Forms Window

Set_Custom_Property( 'BL.BEAN', 1, 'INFOBEAN', '' ) ;

This must be used to retrieve the Forms window that handles the webBrowser, then synchronize its position when the windows is moved. This must be the first property set (in the When-New-Form-Instance trigger).






  • Set the URL/File

Set_Custom_Property( 'BL.BEAN', 1, 'SET_URL', 'url | file_name' ) ;

e.g. :

Set_Custom_Property('BL.BEAN', 1, 'SET_URL', 'http://www.developpez.com/' ) ;         

Set_Custom_Property('BL.BEAN', 1, 'SET_URL', 'd:/mypage.htm' ) ;

  • Set the border of the bean

Set_Custom_Property( 'BL.BEAN', 1, 'SET_BORDER', 'true | false' ) ;

When you want to use this bean to display a Flash image (*.swf), you would probably prefer not to have any border bounding the image.
In this case, set the border to false.

  • Basic navigation

Set_Custom_Property( 'BL.BEAN', 1, 'SET_NAVIGATION', 'back | forward | refresh' ) ;

The sample dialog

Download the eHTMLBrowser.zip file
     . Download the sourceforge project zip file

     . Unzip the files
     . copy the jdic.jar and eHTMLBrowser.jar files in the <ORACLE_HOME>/forms/java directory

     . Edit your /forms/server/formsweb.cfg file to add these 2 jar files
     . Add the 2 .dll files and IeEmbed.exe (from the javaflashbridge-v1.zip file) to your Windows/system32 directory
     . Open the EHTMLBROWSER.fmb module (Oracle Forms 9.0.2)
     . Compile all and run the module

     The .jar files must be signed
     The eHTMLBrowser.jar and jdic.jar files provided with the .zip file are already signed


Partager cet article

Repost 0
Published by Oracle Forms community - dans Bean - general
commenter cet article


Logan 12/07/2017 14:02

This does not work.

Did everything as explained and getting error as below:

java.lang.ClassNotFoundException: oracle.forms.fd.EnhancedHTMLBrowser
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.start(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Samir 18/11/2016 09:54


I followed all the mentioned steps and the form opens in the application, but the Browser is not displayed in the form.
Could anyone please suggest on this: what could be the reason(s).


Samir 18/11/2016 11:24

We use 10g


sindhu 14/03/2015 08:43

i did all the things mentioned in the steps,but when im running the form its not showing anything.. in the java console im getting the below errors
no jdic in java.library.path
The filename, directory name, or volume label syntax is incorrect

Elves 02/03/2011 16:42


I use JInitiator, and I also have installed on my machine the java JRE 1.6.0, but was configured as formsweb.cfg orientation. but not open the page properly, or does not work, as I am
novice in java, I do not know how to load a jar out of JInitiator + Java, or a jar that is not configured into the JInitiator. Could you give me an example of a forms without JInitiator running
or active with a java class that is configured and outside Jnitiator.

Below the configuration of formsweb.cfg
#otherParams=OUTPUT_REAL_DIR=C:DevSuiteHome_10formsdemostemp/ OUTPUT_VIRTUAL_DIR=/forms/formsdemo/temp/
#otherParams=OUTPUT_REAL_DIR=C:WINDOWSTemp/ OUTPUT_VIRTUAL_DIR=/forms/formsdemo/temp/

Oracle JInitiator: Version
Using JRE version Java HotSpot(TM) Client VM
User home directory = C:Documents and SettingsUSUARIOProxy Configuration: Browser Proxy ConfigurationJAR cache enabled
     Location: C:Documents and SettingsUSUARIOOracle Jar Cache
     Maximum size: unlimited
     Compression level: 0----------------------------------------------------
RegisterWebUtil - Loading WebUtil Version http://spe29963:8892/forms/java/eHTMLBrowser.jar from JAR cacheLoading http://spe29963:8892/forms/java/jdic.jar from JAR cacheLoading
http://spe29963:8892/forms/java/frmall.jar from JAR cacheLoading http://spe29963:8892/forms/java/JDICplus.jar from JAR cacheLoading http://spe29963:8892/forms/java/ehb.jar from JAR
cacheproxyHost=nullproxyPort=0connectMode=HTTP, native.Versão do Forms Applet é :

java.lang.VerifyError: (class: oracle/forms/ms/ehb$1, method: signature: (Loracle/forms/ms/ehb;)V) Expecting to find
object/array on stack    at oracle.forms.ms.ehb.$init$(ehb.java:118)    at oracle.forms.ms.ehb.(ehb.java:35)    at
java.lang.Class.newInstance0(Native Method)    at java.lang.Class.newInstance(Unknown Source)    at oracle.forms.ui.VBean.instantiateBean(Unknown Source)  
 at oracle.forms.ui.VBean.setProperty(Unknown Source)    at oracle.forms.handler.ComponentItem.setCustomProperty(Unknown Source)    at
oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)    at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)    at
oracle.forms.handler.UICommon.onUpdate(Unknown Source)    at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)    at
oracle.forms.engine.Runform.processMessage(Unknown Source)    at oracle.forms.engine.Runform.processSet(Unknown Source)    at
oracle.forms.engine.Runform.onMessageReal(Unknown Source)    at oracle.forms.engine.Runform.onMessage(Unknown Source)    at
oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)    at oracle.forms.engine.Runform.startRunform(Unknown Source)    at
oracle.forms.engine.Main.createRunform(Unknown Source)    at oracle.forms.engine.Main.start(Unknown Source)    at sun.applet.AppletPanel.run(Unknown
Source)    at java.lang.Thread.run(Unknown Source)

Thank you for your attention and patience.


Oracle Forms community 03/03/2011 07:34

Here is a link that explains how to use the Sun plug-in instead of the JInitiator:



Mohamad Mualz 13/10/2010 09:18

How will dll files and IeEmbed.exe be copied to client machine?


Oracle Forms community 13/10/2010 19:08

Most of the companies have scripts to downlod files/programs on the client machines at startup.