Simple way

Copy your images to:

[text]c:\Oracle\Middleware\as_1\forms\java\[/text]

Notes:
– Icon files may not be supported.
– In case of a Java security issue when using gif images, you will need to create a jar file and sign it with oracles sign-tool (see below, point 6).
– In case you having trouble with oracle’s sign-tool, do it directly with java’s

Recommended way

1. Create a “icons” folder and place all your gifs in there
i.e. “c:\Oracle\Middleware\as_1\forms\java\<icons>”

2. From within icons folder make a jar file of all the gif images:
[bash]jar -cvf frmicons.jar *.gif[/bash]

3. Copy this new jar into “c:\Oracle\Middleware\as_1\forms\java\”

4. Edit/update formsweb.cfg file:
path
= c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg  …to update/include:
[text]# Forms applet parameter
codebase=/forms/java
# Forms applet parameter
imageBase=codebase

# Forms applet archive setting for other clients (Sun Java Plugin…etc)
archive=frmall.jar,frmicons.jar
# Forms applet archive setting for JInitiator
archive_jini=frmall_jinit.jar,frmicons.jar[/text]

5. Edit/update Registry.dat file:
path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\forms\registry\oracle\forms\registry\Registry.dat
[text]default.icons.iconpath=icons/
default.icons.iconextension=gif[/text]

At this point your icons should work normally, but if you get a security check of Java for gif files then proceed to the next step to fix this. TIP: May need to restart the weblogic/forms server for changes to take effect.

6. Sign your jar file with oracles sign_webutil.bat sign-tool.
path = c:\Oracle\Middleware\asinst_1\bin\sign_webutil.bat

Firstly, you need to edit the sign_webutil.bat as follows:
[bash]SET KEYSTORE_PASSWORD=my_password
SET JAR_KEY=webutil2 # will need to change for every run
SET JAR_KEY_PASSWORD=my_password[/bash]

Secondly, set the environment path and finally run the command:
[bash]set path=c:\Oracle\Middleware\as_1\jdk\bin
cd c:\Oracle\Middleware\asinst_1\bin\
sign_webutil c:\Oracle\Middleware\as_1\forms\java\my_icons.jar[/bash]

This will create your signed jar file. Once initialized from the web-app it should ask the user to “Trust” the certificate and never prompt again.

Other issues you may encounter and may need to edit/update the following files/registry entries as well:

formsweb.cfg

path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg
[text]# Forms applet parameter
codebase=/forms/java
# Forms applet parameter
imageBase=codebase

# Forms applet archive setting for other clients (Sun Java Plugin, …etc)
archive=frmall.jar, my_icons.jar
…or
# Forms applet archive setting for JInitiator
archive_jini=frmall_jinit.jar, my_icons.jar[/text]

Registry.dat

path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\forms\registry\oracle\forms\registry\Registry.dat
[text]default.icons.iconpath=/forms/java
default.icons.iconextension=gif[/text]

Registry entries:

[text]UI_ICON:<path_to_icons_dir>
UI_ICON_EXTENSION: “gif”: “.gif” “ico”: “.ico”[/text]

Credits and further information can be tracked for icons issue here and for jar file creation here.