High Availbility

OS & Virtualization

Tuesday, January 15, 2008

How to add icons into Forms 10g using JAR

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.

Steps to achieve this in a 9iDS/10gDS environments and are given below:

Oracle 9iDS/10gDS (Forms Builder / Runtime)


This example assumes an install of 9iDS/10gDS on a MS Windows.

  1. Copy all the icons files (gif or jpg) to a folder e.g c:\icons folder
  2. Open up a MS Dos/ Command prompt window
  3. Change to the target icons folder
    cd c:\icons
    and jar the icon files
    jar -cvf icons.jar *
  4. Copy icons.jar to \forms90\java
    or
    Copy icons.jar to \forms\java
  5. Changes have to be made in formsweb.cfg
    a) archive_jini=xxall_jinit.jar,icons.jar
    b) imageBase=codeBase
    This signifies that the jar file is placed under the forms90/java or forms/java
    folder.

No comments: