0% found this document useful (0 votes)
27 views

Java Beans Using&amp Creating

This document provides instructions for using, modifying, and creating JavaBeans in Oracle Forms 10g: i. It describes how to use existing JavaBeans by copying JAR files to the correct folder and updating the configuration file. ii. Modifying Java code to meet the specifications of a JavaBean is explained, noting the main requirement is a no-argument constructor. iii. Directions are given for creating a JAR file from a Java package using the jar utility at the command line.

Uploaded by

fatomnj
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Java Beans Using&amp Creating

This document provides instructions for using, modifying, and creating JavaBeans in Oracle Forms 10g: i. It describes how to use existing JavaBeans by copying JAR files to the correct folder and updating the configuration file. ii. Modifying Java code to meet the specifications of a JavaBean is explained, noting the main requirement is a no-argument constructor. iii. Directions are given for creating a JAR file from a Java package using the jar utility at the command line.

Uploaded by

fatomnj
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Report for JavaBeans using and creating

i. Search for the way to use an available JavaBeans examples.


• Download and unzip the file.
• Copy the JAR files in your /forms/java/ folder.
• Add them to the archive or archive_jini tags or both in
/forms/server/formsweb.cfg file.
archive=frmall.jar,jarFile.jar
or archive_jini =frmall_jini.jar,jarFile.jar.
according to instructions with your file.
• Open the file.fmb module (Oracle Forms 10.1.2).
• Compile all and run the module.

ii. Modify the java code to be JavaBeans.


• JavaBeans is simply a java code that has some specifications.
• The only real requirement for a JavaBean is that it has a zero
argument constructor. If no constructor is defined, then a zero
argument constructor is assumed.
• When variables are declared private, access must be made
through defined access methods(getters and setters).

iii. Search and implement creating a jar file from java package.
• The jar utility program is run from the command line (DOS
prompt).
• Here is how to create a compressed JAR file:
cd C:\Program Files\Java\jdk1.6.0_14\bin
jar cf archive_name.jar files.
• Files : Names of all the files you want to put in the jar file.
• CF: create a new archive with the file name specified.
• You will find your jar file at
C:\Program Files\Java\jdk1.6.0_14\bin\ archive_name.jar.

iv. Search for creating JavaBeans and using it in oracle 10g.


• Copy the JAR files in your DevSuiteHome\forms\java\folder.
• Update your DevSuiteHome\forms\server\formsweb.cfg
configuration file:
archive_jini =frmall_jini.jar, archive_name.jar.
archive =frmall.jar, archive_name.jar.
• Open the file.fmb module.
• Compile all and run the module.

You might also like