Where can I find the JAR-File of the JDAPI-demo FormDumper ?

Hi,
I would like to compile the JDAPI-demo FormDumper
and cannot find the right jar-file of :
import oracle.forms.util.Getopt.*; .
Thanks,
Friedhold

Ok there is no place to find the getopt file. forms 10.1.2.2.0) One needs the corrected version of the formdumper program which elimates calling it.
btw to compile this one would need to do:
set CLASSPATH=c:\devsuite\forms\java\frmjdapi.jar;
javac FormDumper.java
to run it I found this necessary:
set CLASSPATH=c:\FormDumper.class;c:\devsuite\forms\java\frmjdapi.jar;
java FormDumper c:\\mydirectory\\myform.fmb >myform.out
/* modified version of the corrected version */
/* Subject:      How To Implement The Code From 'A JDAPI Programming Example' From Forms Online Help?
     Doc ID:      Note:428083.1      Type:      HOWTO
     Last Revision Date:      23-APR-2007      Status:      PUBLISHED
Applies to:
Oracle Forms - Version: 9.0.5.2 to 10.1.2.2
Information in this document applies to any platform.
Goal
The goal of this document is to explain how to make the sample code provided in the java class FormDumper 'A JDAPI Programming Example' from Forms OnLine help work.
When used as it is provided in the documentation it fails, because 'import oracle.forms.util.getopt.*; not found'.
Solution
The sample code provided in the 'A JDAPI Programming Example' Forms OnLine help has the following line:
import oracle.forms.util.getopt.*;
When trying to compile the FormDumper.java the compilation fails with 'import oracle.forms.util.getopt.*; import not found'. This import fails due to the fact that util.jar library is not available with the standard Forms iDS. The solution to have the FormDumper class is to use another code in which util.jar is not used.
Sample code to be used:
import java.io.File;
import java.io.PrintWriter;
import java.io.FileWriter;
import java.text.MessageFormat;
import oracle.forms.jdapi.*;
* Dumps passed forms JdapiObjects to an output stream as text.
* Set command line options for more output, else only the
* basic form tree structure will be dumped.
* See printUsage for command line options.
public class FormDumper {
     * Need this to parse the command line options
     * The string represents valid command options as detailed in the
     * Getopt class
    /* changed following b */
    /* boolean m_dumpAllProps = false;
boolean m_dumpBoolProps = false;
boolean m_dumpNumProps = false;
boolean m_dumpTextProps = false;
boolean m_dumpPropNames = false;
    boolean m_dumpAllProps = true;
    boolean m_dumpBoolProps = true;
    boolean m_dumpNumProps = true;
    boolean m_dumpTextProps = true;
    boolean m_dumpPropNames = true;
    String m_dumpPath = null;
     * Output stream, default to STDOUT */
    private PrintWriter m_out = new PrintWriter(System.out, true);
     * Use this to indent children
    private String m_indentation = "";
     * Constructor
    public FormDumper() {
     * Special constructor that does not take command line arguments.
     * @param out The output writer where to send dump information.
    public FormDumper(PrintWriter out) {
        m_out = out;
        m_dumpAllProps = true;
        m_dumpBoolProps = true;
        m_dumpNumProps = true;
        m_dumpTextProps = true;
        m_dumpPropNames = true;
     * Set the dump path.
     * @param path The file where the dumper must send the information
    public void setDumpPath(String path) {
        m_dumpPath = path;
     * Indirect output
    public void println(String s) {
        m_out.println(s);
     * Dump a form to the output stream
    public void dumpForm(String filename) throws Exception {
        FormModule fmb = FormModule.open(filename);
        System.out.println("Dumping module " + fmb.getName());
        if (m_dumpPath != null) {
            // use this form's FILE name to name the dump file
            String thisFormName = new File(filename).getName();
            thisFormName =
                    thisFormName.substring(0, (thisFormName.length() - 4));
            StringBuffer dmpFilename = new StringBuffer();
            dmpFilename.append(m_dumpPath);
            if (!dmpFilename.toString().endsWith("/")) {
                dmpFilename.append("/");
            dmpFilename.append(thisFormName);
            m_out =
                    new PrintWriter(new FileWriter(dmpFilename.toString()), true);
        // Call the actual 'dump' method
        dump(fmb);
        // Dump the coordinate system used by the module
        m_indentation = " ";
        dump(new Coordinate(fmb));
        m_indentation = "";
        println("Dumped " + fmb.getName());
        // Close the module
        fmb.destroy();
     * Recursively dump a forms JdapiObject and its children to the output stream
    protected void dump(JdapiObject jo) {
        String className = jo.getClassName();
        // print out a context line for the JdapiObject
        // If it is a coordinate system, it does not have a name
        if (className.equals("Coordinate")) {
            println(m_indentation + "Coordinate System ");
        } else {
            println(m_indentation + className + " " + jo.getName());
        // Property classes need special treatment
        if (className.equals("PropertyClass")) {
            dumpPropertyClass((PropertyClass)jo);
        } else // Generically dump the required property types only
            if (m_dumpTextProps) {
                dumpTextProps(jo);
            if (m_dumpBoolProps) {
                dumpBoolProps(jo);
            if (m_dumpNumProps) {
                dumpNumProps(jo);
            // Additionally, dump any Item list elements
            if (className.equals("Item")) {
                dumpListElements((Item)jo);
        // use Form's metadata to get a list of all the child JdapiObjects this
        // JdapiObject can have b commented this
        JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass());
        JdapiIterator props = meta.getChildObjectMetaProperties();
        JdapiMetaProperty prop = null;
        JdapiIterator iter = null;
        JdapiObject child = null;
        // loop through every possible kind of child JdapiObject this JdapiObject
        // can have b commented this
        while (props.hasNext()) {
            prop = (JdapiMetaProperty)props.next();
            // only bother if we can access these JdapiObjects
            if (!prop.allowGet()) {
                continue;
            // get the actual values for the current child JdapiObject type,
            // e.g. get the Items on a Block
            iter = jo.getChildObjectProperty(prop.getPropertyId());
            // null is returned if there are no property values
            if (iter != null) {
                // loop over every child value
                while (iter.hasNext()) {
                    child = (JdapiObject)iter.next();
                    // recursively navigate to it
                    m_indentation += " ";
                    dump(child);
                    if (m_indentation.length() > 2)
                        m_indentation =
                                m_indentation.substring(0, m_indentation.length() -
                                                        2);
     * Dump list elements
     * The JdapiObject is an item; if it is a list item,
     * dump the list elements.
     * @param item
    private void dumpListElements(Item item) {
        if (item.getItemType() == JdapiTypes.ITTY_LS_CTID) {
            if (m_dumpPropNames) {
                println(m_indentation + "dumping list elements");
            for (int i = 1; i <= item.getListElementCount(); i++) {
                String label = item.getElementLabel(i);
                String value = item.getElementValue(i);
                println(m_indentation + " " + i + ": '" + label + "' '" +
                        value + "'");
     * Dump the property class properties
    private void dumpPropertyClass(PropertyClass pc) {
        String propertyVal = null;
        // test for every single possible property
        // this is a bit hacky :)
        for (int propertyId = 1; propertyId < JdapiTypes.MAXIMUM_PTID;
             ++propertyId) {
            if (!pc.hasProperty(propertyId)) {
                continue; // this property is not in the set
            if (pc.hasDefaultedProperty(propertyId) && !m_dumpAllProps) {
                continue;
            Class pt = JdapiMetaProperty.getPropertyType(propertyId);
            if (pt == Boolean.class) {
                if (m_dumpBoolProps) {
                    propertyVal =
                            String.valueOf(pc.getBooleanProperty(propertyId));
            } else if (pt == Integer.class) {
                if (m_dumpNumProps) {
                    propertyVal =
                            String.valueOf(pc.getIntegerProperty(propertyId));
            } else if (pt == String.class) {
                if (m_dumpTextProps) {
                    propertyVal = pc.getStringProperty(propertyId);
            if (null != propertyVal) {
                if (m_dumpPropNames) {
                    println(m_indentation + " " +
                            JdapiMetaProperty.getPropertyName(propertyId) +
                            " " + // changed by b
                            propertyVal);
                } else {
                    println(m_indentation + propertyVal);
                propertyVal = null;
        } // End loop over every property
     * Dump the source JdapiObject text properties
    private void dumpTextProps(JdapiObject jo) {
        JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass());
        JdapiIterator props = meta.getStringMetaProperties();
        // for each text property
        while (props.hasNext()) {
            JdapiMetaProperty prop = (JdapiMetaProperty)props.next();
            int propertyId = prop.getPropertyId();
            String propertyVal = null;
            try {
                propertyVal = jo.getStringProperty(propertyId);
            } catch (Exception e) {
                println(m_indentation + "Could_not_get_property " +
                        JdapiMetaProperty.getPropertyName(propertyId));
                continue;
            if (jo.hasProperty(propertyId) &&
                (m_dumpAllProps || !(jo.hasDefaultedProperty(propertyId)))) {
                if (m_dumpPropNames) {
                    println(m_indentation + " " +
                            JdapiMetaProperty.getPropertyName(propertyId) +
                            " " + propertyVal);
                } else {
                    println(m_indentation + propertyVal);
     * Dump the source JdapiObject boolean properties
    private void dumpBoolProps(JdapiObject jo) {
        JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass());
        JdapiIterator props = meta.getBooleanMetaProperties();
        // for each boolean property
        while (props.hasNext()) {
            JdapiMetaProperty prop = (JdapiMetaProperty)props.next();
            int propertyId = prop.getPropertyId();
            boolean propertyVal = false;
            try {
                propertyVal = jo.getBooleanProperty(propertyId);
            } catch (Exception e) {
                println(m_indentation + "Could_not_get_property " +
                        JdapiMetaProperty.getPropertyName(propertyId));
                continue;
            if (jo.hasProperty(propertyId) && (m_dumpAllProps)) {
                if (m_dumpPropNames) {
                    println(m_indentation + " " +
                            JdapiMetaProperty.getPropertyName(propertyId) +
                            " " + propertyVal);
                } else {
                    println(m_indentation + propertyVal);
     * Dump the source JdapiObject numeric properties
    private void dumpNumProps(JdapiObject jo) {
        JdapiMetaObject meta = JdapiMetadata.getJdapiMetaObject(jo.getClass());
        JdapiIterator props = meta.getIntegerMetaProperties();
        // for each numeric property
        while (props.hasNext()) {
            JdapiMetaProperty prop = (JdapiMetaProperty)props.next();
            int propertyId = prop.getPropertyId();
            int propertyVal = 0;
            try {
                propertyVal = jo.getIntegerProperty(propertyId);
            } catch (Exception e) {
                println(m_indentation + "Could_not_get_property " +
                        JdapiMetaProperty.getPropertyName(propertyId));
                continue;
            if (jo.hasProperty(propertyId) &&
                (m_dumpAllProps || !(jo.hasDefaultedProperty(propertyId)))) {
                if (m_dumpPropNames) {
                    println(m_indentation + " " +
                            JdapiMetaProperty.getPropertyName(propertyId) +
                            " " + propertyVal); //changed by b
                } else {
                    println(m_indentation + propertyVal);
     * Output usage info to STDOUT
    public void printUsage() {
        System.out.println("");
        System.out.println("Jdapi Form Dumper Utility");
        System.out.println("Valid arguments:");
        System.out.println("-a : dump all properties, not just overridden ones");
        System.out.println("-b : dump boolean properties");
        System.out.println("-n : dump numeric properties");
        System.out.println("-t : dump text properties");
        System.out.println("-p : dump property names, not just values");
        System.out.println("-o : file path to output to");
     * Main method
    public static void main(String[] args) throws Exception {
        FormDumper dmp = new FormDumper();
        for (int i = 0; i < args.length; i++) {
            dmp.dumpForm(args);
System.out.println("");
System.out.println("Dumps complete");
System.out.println("");
Message was edited by:
Jan Carlin

Similar Messages

  • Where can I find my picture files in the finder?

    I download iPhoto with another person's account, so I never could update the new versions; because I don't know the password, and the person cannot enter to the account anymore. Now apple doesn't let me open iPhoto, because the version is too old, 9.2.1 to be exclaty.  Where can I find my picture files in the finder, so I can export them and save them?

    There should be an iPhoto Library in the Users> "user account" > Pictures folder.
    You may also try to see about finding them through the user finder window where it says search for 'all images.'
    Not sure about the rest of that situation.
    Good luck & happy computing!

  • Where can I find all downloaded files from the int...

    I downloaded applications from the Net, and installed them. After that I tried to copy those files to save for back-up.  But I don't know where those files are.  The looks like those files should be in "My Stuff", but failed to located them.  I checked the usage, and definately those files are taking some spaces in my phone.
    FYI, I'm in USA with E71x.

    When you download and install applications, for Symbian/S60 applications, the original installation file is not retained.
    For Java applications, the .jar file is copied to a private (hidden) directory in phone memory or memory card (depending on where you installed the app).

  • Where can I find this jar file

    Hi
    I need to get implement this interface.
    com.sapportals.portal.prt.service.rfc.IPRTRFCListener
    Where can I get the jar for this.
    Regards
    Senthil

    Hello Senthil,
    I you can try to search for it with JarFinder, look here Can't find them...
    to get it running.
    hope it helps
    Koen Van Loocke

  • Where can I find a full list of the Logic Pro X Software Instruments?

    Where can I find a full list of the Logic Pro X Software Instruments (the ones you can play with a MIDI keyboard)?  From what I've read so far, there are a number of new software instruments in the LPX additional content (as well as loops, etc, but I'm looking for the software instruments).  I cannot seem to find this information in the product pages or documentation, though.
    With older versions, I was able to find a list of all of the software instruments that came with the software, and all of the software instruments that came with the Jam Packs.  Is that list available from Apple, or does anyone have one from somewhere else?

    Hi Guys,
    I exported my folders from a clean LPX install, does this give you what you want?
    First one is the Patch instruments:
    http://www.supportat.net/forumfiles/LPX_PatchInstruments.txt
    This one is the sampler Instruments:
    http://www.supportat.net/forumfiles/LPX_SamplerInstruments.txt
    This is all the files:
    http://www.supportat.net/forumfiles/LPX_AllFolders.txt

  • Where can i find my downloaded files in adobe download assistant

    where can i find my downloaded files in adobe download assistant

    You aren't likely to find them in the Adobe Download Assistant.  Try downloading again and see if it specifies where the files will be placed before the actual download occurs.

  • Where can I find my iweb file in my computer?

    Where can I find my iweb file in my computer? I need to take it to a different Mac.
    Thanks.

    I'm sure you searched the iWeb Help and/or  this forum, but couldn't find the answer.
    In this forum : where iweb file
    And the iWeb Help, a great source of information :
    And if you look at the right, you''ll see some similar topics.
    More Like This
    How do I get my saved iweb project to another linked computer?
    Re: Where do I find my iweb files on my computer?
    Re: Cannot modify iWeb site on different computer
    Re: Can Keynote link to an iWeb file that has been published to my computer?
    Where does iWeb store my web page on my computer?  No "save as"

  • Where  can I find crm SIM files

    Hi sap Guru's,
       Please tell me where can I find crm sim files, I have installed sap tutor player, so plz intimate me at id: [email protected],advanced thanks.
    with regards
    sai vishnu.

    Hi Sai,
    1). Goto www.sapsuperusers.com
    2). Create a free account
    3). On the first page click on the button 'ACCESS DOCUMENTS;
    4). Browse topics wise and start downloading.
    What you can get here:
    1). SAP SIM Tutor files
    2). SAP Easy Made guide Books
    3). Third Party product information
    and the list goes on and on.
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Where can i find bookmarks.html file in firefox 10

    where can i find bookmarks.html file in firefox 10, so that i can customize a new firefox setup.

    cor-el, i tried this...it is working but it is add the new bookmarks to the default one (i want to override the bookmarks not to add them to the default).
    And finally i solved the problem as the following:
    1- install the firefox.
    2- change the bookmarks manually (delete the old one and add the links you want).
    3- package your work into dmg file.
    Yes as simple as that :D
    Thank you all for your help.

  • Where can i find weblogic_sp.jar???????

    i use JBuilder7 to develop a JSP and Servlet.when i make the files ,the system say "Can not find F;\bea\weblogic700\server\lib\weblogic_sp.jar to copy to WebApp MyWebApp : file is defined as element of library weblogic6.X Deploy"
    when i config Tool->Config servers ,i delete the weblogic_sp.jar item and I can not find this Jar file in that directory.
    How can i do or Which link i can find the weblogic_sp.jar to download?

    Try this link - you'll need to login:
    http://support.bea.com/sitemap.jsp?highlight=sitemap#_BEA_Product_Downloads_and_Service_Packs

  • Where can I find WebLogic JAR including javax.annotation package?

    Hello.
    I'm writing and testing WebLogic EJB 3.0 sample through the edocs.bea.com
    Most samples in edocs use javax.annotation package, but I couldn't find any of javax.annotation package in jars of %WEBLOGIC_HOME%\server\lib folder.
    I want to use it such as javax.annotation.PreDestroy, javax.annotation.Resource etc.
    I'm using WebLogic 10.0 and Eclipse 3.3.
    Where can I find a jar include javax.annotation package?
    Thanks in advance.
    Edited by ienvyou at 12/11/2007 6:30 PM

    BEA_HOME\modules\javax.annotation...
    Edited by li_shen at 12/11/2007 10:26 PM

  • Where can I find a guide to all the options and settings available via the "about:" pseudo-URL? (Using FF 3.6.8)

    When I last used Firefox support, several years ago, I saw mention of a long list of options and settings available, using a kind of local URL, beginning with "about:". I can't find it now. The text "forums" that I saw then seem to have disappeared and been replaced by support for dummies who might be frightened if they saw a page containing more than just a tiny amount of information.
    The question is: where can I find this guide, listing all the available options and settings so that I can make my own decisions?

    I must have forgotten; it wasn't exactly FF support, but Mozillazine. '''Thank you for the pointer'''. The "long list" I was thinking of was in fact about:config, which is pointed to by that page.
    Given all that, I think it should be easier to find Mozillazine from the FireFox support pages.

  • I want to change the file location for the automatic backup file bookmarks.file, but I can't find browser.bookmarks.file in the list on the about:config page.

    I asked about automatic backup of bookmarks and received the following answer:You can make Firefox 3 create an automatic HTML backup (bookmarks.html) when you exit Firefox if you set the pref [http://kb.mozillazine.org/browser.bookmarks.autoExportHTML browser.bookmarks.autoExportHTML] to true on the about:config page. That backup is created by default in the profile folder as bookmarks.html, but you can set the file name and path via the pref [http://kb.mozillazine.org/browser.bookmarks.file browser.bookmarks.file] on the about:config page. I went to about:config page and toggled browser.bookmarks.autoExportHTML to “Yes” and it’s working. However, I want to change the file location, but I can’t find browser.bookmarks.file in the list.

    The browser.bookmarks.file preference does not exist by default. Right-click in about:config and select "New > String" to create it.

  • Where can i find a Labview driver for the "8990a PEAK POWER ANALYZER" it's not on NI's site.

    where can i find a Labview driver for the "8990a PEAK POWER ANALYZER" it's not on NI's site.
    if there is no driver maybe you can tell me the closest instrument that comes to this one from the list at,
    http://search.ni.com/query.html?lk=1&col=alldocs&nh=500&rf=3&ql=&pw=595&qp=%2BContentType%3AInstrumentDriver+%2BIDNetManufacturer%3A%22Hewlett-Packard%22&qt=peak+power+analyzer&layout=IDNet
    so i could modify and use the driver

    Hello,
    It looks like Agilent/HP makes the 8990A, but I was not able to find a driver for it that we or Agilent has written for this device.
    Since I am not familiar with the 8990A, I cannot recommend which drivers might be similar, but you are pointed in the right direction. Agilent themselves might know more about which models use similar command sets so that you can modify a driver easily.
    Hope this helps.
    Scott B.
    Applications Engineer
    National Instruments

  • Where can I find out what each of the icons on Apple TV screen represents?

    Where can I find out what each of the icons on Apple TV screen represents? Some cost $$, some are free.Help!

    Where are you located.

  • I rented a movie and the download was interrupted. Where can I find it again to resume the download?

    I rented a movie and the download was interrupted. Where can I find it again to resume the download?

    Try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • CS5 takes forever to open via remote desktop

    Hi All, We are using CS5 and have it installed on a machine, which has a production license with Darwin VDP software. The way we work, is to do all the design work on our local copy of Indesign, and run productions using the pilot license of Darwin (

  • How do I grow an HFS partition on an external USB disk?

    I have a USB disk, MBR partitioned, with one ext4 and one HFS+ partition. There is 250GB of unpartitioned space following the HFS+ partition, into which I'd like to grow for Time Machine use. bash-3.2# diskutil list -snip- /dev/disk1    #:           

  • RAW plug-ins for Leica V-Lux 4 camera, .RWL files

    I am using Photoshop CS4 on a Mac Pro, OS 10.7.5. I own a Leica V-Lux 2 camera which records RAW files as .RWL files. PS CS4 won't open the  .RWL files even tho Adobe Updater  tells me that I am up-to-date. I can't find anywhere on the Adobe website

  • Add a duplicated comp to the render cue.

    I've created a script that replaces text in multiplt text layers from a csv text file, creates a new comp from each row in the text file, names the comp from the last field in the row. At the end of the loop I'd like to add the comp to the render cue

  • Where can I find the pin-outs for 8-pin remote Hirose connector?

    Where can I find the pin-outs for 8-pin remote Hirose connector?