• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2926
  • Last Modified:

Oracle 9i ICON Image PB


I am migrating an Oracle Forms/Reports 6i application to Oracle 9i using the iDS.
I have 3 toolbars using a number of ICON image files.

During the migration to ORacle 9i, Only a SAVE and PRINT images appear in my toolsbar.  At runtime in Oracle 9i, no images are displayed in the toolbar.

I converted all ICO files to GIF files and generated an JAR file are indicated in the DOC.
I was carefull with respect to case upper/lower.

Any ideas how I can resolve this issue ?

1 Solution
The following is from Oracle Metalink Note:203846.1

This document describes how to implement gif/jpeg icons on buttons in Forms  
9.0.x. This is done by defining a virtual  
directory containing the icons and directing the Forms application to use that  
Audience: Forms Developers
This document ONLY describes the steps required for deploying icons in the  
Forms 9.0.x  
For information on deploying icons for Forms 9i in Oracle9i Application Server  
Release 2, refer to:
Note 208272.1 How to Display Iconic Images Using Forms 9i Services (9iAS Rel 2)?
When running an Oracle Forms 9i application the icon files used must be in
a web enabled format such as JPG or GIF (GIF is the default format) (This is
unlike older versions of forms running in client-server mode when the file  
format is .ico.)  
Icon image files can either be retrieved by Forms as individual files on the  
filesystem or from a Java Archive (JAR file).  If an application uses lots of  
icon images it is recommended that they are stored in a JAR file to reduce the  
number of HTTP round trips. This type of tuning, however, primarily applies to  
deployment of the application in a production environment i.e Oracle 9iAS Rel 2
Note 232413.1 How to Deploy Iconic Images via a JAR File in Forms 9i?
The example below details steps to configure the former. It is an approach  
recommended for initial testing and understanding in a development environment.
This example applies to Windows and UNIX operating systems:  
Windows will use the "\" character to delimit directories and UNIX uses
the "/" character. Any other differences will be pointed out.
1. In the form you have a button with the following properties set -  
    Iconic         -       Yes
    Icon Filename  -       save  (Where save.gif is the gif file to be used as icon)
2.  Copy the icon to the desired directory on the file system.  
    o In <9iDS_HOME>\forms90\ create a directory by the name of 'image'  
    o Create or find a directory on the file system to place the icons. For this
      example, assume that a directory C:\icons exists on the file system.  
    The "Icon Filename" property is case sensitive. When the icon is saved, make  
    sure the case of the name in the file system and in the form property is the
3. Open the orion-web.xml file in a text editor like Wordpad or vi. This file
   can be found in:  
   Find the following section in orion-web.xml:  
   <context-param-mapping name="configFileName">d:\9iDS/forms90/server/formsweb.cfg</context-param-mapping>
   <virtual-directory virtual-path="/html" real-path="d:\9iDS/tools/web90/html" />
   <virtual-directory virtual-path="/java" real-path="d:\9iDS/forms90/java" />
   <virtual-directory virtual-path="/jinitiator" real-path="d:\9iDS/jinit" />
   Add the line after the virtual directory defined for "/jinitiator".  
   o The "images" virtual directory is defined as follows:  
     <virtual-directory virtual-path="/image" real-path="d:\9ids/forms90/image" />
   o The "icons" virtual directory is defined as follows:
     <virtual-directory virtual-path="/icons" real-path="c:\icons" />
4. Stop and restart the OC4J instance to pick up the changes made in the  
   orion-web.xml file.
   Select the Start/Stop OC4J Instance in:
   Start>>Programs>>Oracle 9i Developers Suite>>Forms Developer
   To stop the 9iDS OC4J process on UNIX:
   To start the 9iDS OC4J process on UNIX:
5. Verify that the image virtual directory has been mapped correctly by using
   the following URL in your browser:
   This should display the gif image. If not, the virtual directory has not been
   defined properly and your form will not display the icon. See the "Check List"
   section for debugging information.  
7. When the icons can be displayed via the browser, the Registry.dat file used
   by Forms can be modified to point to the location of your icon files. The  
   Registry.dat file is in <9iDS_home>\forms90\java\oracle\forms\Registry. Note
   that for UNIX, both the path name and file name are case sensitive. You must  
   specify "Registry.dat".
    o To use the "images" virtual directory described in this example:  
      default.icons.iconpath=image/    (The image will be read relative to forms90 virtual path)
    o To use the "icons" virtual directory described in this example:  
      default.icons.iconpath= http://abc.oracle.com:8888/forms90/icons 
8. Run the form from the Form Builder and the icon should be displayed.
Icons do not appear in the browser using the URL:  
o Verify that you are using the correct machine name and port for the 9iDS
o Check the virtual directory name to make sure that there are no typographical
o Check for typographical errors in the orion-web.xml for the virtual directory.  
o Check the name of the icon on the file system. If the file is saved as  
  Save.gif, then it will not be found using the URL  
  http://abc.oracle.com:8888/forms90/<your virtual directory>/save.gif
o As the example shows above overall be careful about case sensitivity  
When icons do not appear on the form:              
1) Test to see that the icon appears on your form by running the form in the  
   Form Builder. If the icon does not appear:  
   o Check the Registry.dat for typographical errors for the "default.icons"  
   o Verify the name specified in the "Icon Filename" property of the form  
     matches the case of the icon on the file system.  If the property contains
     "SAVE", but the icon on the file system is named save.gif, the icon will  
     not appear when you run the form.  
2) If icons are still not appearing on the form try these suggestions:  
   a) Close all your existing, running forms and browser windows.
      Delete all the old cached files from  
      C:\Program Files\Oracle\JInitiator\jcache
      For JInitiator 1.3.1.X:  
      Go to Control Panel->Jinitiator 1.3.1.X->Cache Tab ->Click Clear Cache
      Clear the browser cache:
      For IE       : Tools menu->Internet Option->Delete all files
      For Netscape : Edit Menu->Preferences->Advanced->Cache->Clear Disk and  
                     Memory cache
     Close all your browser sessions and open a new browser window. Execute  
     the URL to bring up from the Form Builder runtime or from the browser.
  b) Disable applet caching by setting or adding the jinit_appletcache="off"  
     in the HTML files:  
     Close all your browser sessions and open a new browser window. Execute  
     the URL to bring up from the Form Builder runtime or from the browser.
Note 208272.1 How to Display Iconic Images Using Forms 9i Services (9iAS Rel 2)?
Note 232413.1 How to Deploy Iconic Images via a JAR File in Forms 9i?
[PDF] Oracle9iForms Services - How to Deploy Icons
9i forms9i 9.0.2 9iDS Rel2 R2 builder windows ms web webforms www internet intranet migrate upgrade  
implement deploy displayed display show shown appear visible icon icons iconic  
image images gifs gif jpeg jpegs jpg ico OC4J http listener
ptrevesAuthor Commented:
Hello again,

Take a note that I am working a a local Windows XP Pro client machine where I installed Oracle 9i IDS.
I noticed through trial and error that typing I can display my converted gif file.

However , when I get into Oracle Forms/Reports 9i, nothing is displayed neither at runtime.

I get the fillling that I need to use the IP address of my PC in someway in Forms/Reports ?

Can you explain to me what I am experiencing ?


PS: Reading the notes I noticed: http://abc.oracle.com:8888/forms90/image/SAVE.gif.\
That makes no sense to me ..............Can you give me more details ?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now