Tuesday, 10 January 2017

Displaying Icon on Button in Oracle Forms 12c


Icons Buttons in 12c Fusion Middleware.
1. Start the following Services
     Start Weblogic Admin Server
     Start Weblogic Server WLS_FORMS
2. copy the icon folder in following path
    C:\Oracle\Middleware\<ORACLE_HOME>\forms\java

3. Switch to command Prompt
   cd C:\Oracle\Middleware\<ORACLE_HOME>\forms\java\icons
   now apply the following command
   C:\Oracle\Middleware\<ORACLE_HOME>\forms\java\icons>C:\Oracle\Middleware\<ORACLE_HOME>\oracle_common\jdk\bin\jar -cvf frmicons.jar *.gif


4.copy the icons.jar file into C:\Oracle\Middleware\<ORACLE_HOME>\forms\java

5. Edit/update formsweb.cfg file: (Don’t Forget to take back up File)
Path=C:\Oracle\Middleware\<ORACLE_HOME>\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_12.1.1\config\formsweb.cfg  …to update/include:
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]

6. Edit/update Registry.dat file: (Don’t Forget to take back up File)
Path=C:\Oracle\Middleware\<ORACLE_HOME>\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_12.1.1\config\forms\registry\oracle\forms\registry\Registry.dat
[text]default.icons.iconpath=icons/
default.icons.iconextension=gif[/text]

7. At the end of CLASSPATH in DEFAULT.env add the following value
  ;C:\Oracle\Middleware\<ORACLE_HOME>\forms\java\icons.jar
8. a block message appear from java, press do not block
9. now run your forms.

The path and drive i used to this practical its created on my PC, but you must change the path and drive where you install the oracle forms.

5 comments:

  1. Thanks for the sharing the configuration information.
    Please also tell, How to Use/implement in the Form.

    ReplyDelete
  2. C:\Oracle\Middleware\\forms\java and no frmicons.jar

    ReplyDelete
    Replies
    1. there is no folder and icons.jar file my installation is 12.2.1
      do i need to obtain this folder/files somewhere?

      Delete
  3. Thank you. It helped me a lot.

    ReplyDelete
  4. Able to see the icon on the button but the gif file is not fit in the frame. how to fix it with in the button edge?

    ReplyDelete