Forms 9i  JDAPI.

Could you please help with a small problem. I'm trying to run a class which in turn uses JDAPI provided
by oracle with Forms 9i. During initialisation it fails to load a library "ifjapi90".
I have changed the java.library.path and sun.boot.library.path accordingly to include the above file
just before initialising. Problem still persists.
Error thrown is :-
java.lang.UnsatisfiedLinkError: no ifjapi90.dll in java.library.path
void java.lang.ClassLoader.loadLibrary(java.lang.Class, java.lang.String, boolean)
void java.lang.Runtime.loadLibrary0(java.lang.Class, java.lang.String)
void java.lang.Runtime.loadLibrary(java.lang.String)
void mypackage.FormsAnalyser.<init>()
java.lang.Object java.lang.Class.newInstance0()
java.lang.Object java.lang.Class.newInstance()
boolean oracle.ide.AddinManager._registerAddin(java.lang.String, boolean)
void oracle.ide.AddinManager.initAddins(java.util.Properties, java.lang.String, boolean)
void oracle.ide.AddinManager.initAddins(java.util.Properties, boolean)
void oracle.ide.AddinManager.initProductAndUserAddins()
void oracle.ide.Ide.initProductAndUserAddins()
void oracle.ide.Ide.startupImpl(oracle.ide.IdeArgs)
void oracle.ide.Ide.startup(oracle.ide.IdeArgs)
void oracle.ideimpl.IdeMain.main(java.lang.String[])
Please help.
Regards,
Ashish.

Hi Ashish,
Try to add the path to your 9ids installation->bin in your path/ classpath and I think it should be ok then. I am not an expert, but I have managed to get some programs in the jdapi example compiled.
HTH
Cheers
Pramodh

Similar Messages

  • Oracle9iDS Forms Developer JDAPI and XMLTOOLS Javadoc Missing

    Oracle9iDS Forms Developer JDAPI and XMLTOOLS Javadoc ZIP file is missing. When you click on http://otn.oracle.com/documentation/9i_forms.html and scroll down to to Javadoc section, click on zip link moves you to http://otn.oracle.com/documentation/index.html which is wrong. Please take action and fix it!
    Cheers,
    Andrej Zabkar

    Hi Andrej,
    Thankyou for the feedback.
    I have fixed the link, please try once again.
    Regards,
    Les

  • How to attach that object_library to a form using jdapi?

    Hi!
    I am doing a migration process from Forms 6i to Forms 10g, and I need to attach an object_library object to a specific form using jdapi. The object_library that I want to attach is the web_util object_library.
    How to attach that object_library to a form using jdapi?
    Thanks.

    I had never used JDAPI before reading your post, but the attached code creates a minimal WebUtil-enabled form from scratch -- adapting it to update an existing form should be fairly straightforward. I've only been coding in Java for about a year, so consider this only as a starting point -- there may be better, easier ways of doing this.
    import oracle.forms.jdapi.*;
    public class Driver {
      public Driver() {
        /* create a minimal form */
        FormModule frm = new FormModule("JDAPI_DEMO");
        Block dummyBlock = new Block(frm, "BLK_DUMMY");
        Canvas dummyCanvas = new Canvas(frm, "CVS_DUMMY");
        Item textItem = new Item(dummyBlock, "TXT_DUMMY");
        textItem.setCanvasObject(dummyCanvas);
        /* open WebUtil object library */
        ObjectLibrary olWebUtil = ObjectLibrary.open("c:/ora10g/forms/webutil.olb");
        /* attach WebUtil PL/SQL library */
        AttachedLibrary alWebUtil = new AttachedLibrary(frm, "c:/ora10g/forms/webutil.pll");
        /* loop through each tab in object library */
        for (JdapiIterator it=olWebUtil.getObjectLibraryTabs(); it.hasNext();) {
          ObjectLibraryTab olt = (ObjectLibraryTab) it.next();
          /* loop through each object in tab */
          for (JdapiIterator it2=olt.getOwnedObjects(); it2.hasNext();) {
            JdapiObject obj = (JdapiObject)(it2.next());
            String className = obj.getClassName();
            /* handle module parameters */
            if (className.equals("ModuleParameter")) {
              ModuleParameter mp =
                new ModuleParameter(frm, obj.getName(), (ModuleParameter) obj);
            /* handle object groups */
            if (className.equals("ObjectGroup")) {
              ObjectGroup og = new ObjectGroup(frm, obj.getName(), (ObjectGroup) obj);
        frm.compile();
        frm.save("c:/jdapi_demo.fmb");
      public static void main(String[] args) {
        Driver drv = new Driver();
    }

  • How to compile forms with JDAPI ?

    Hi everyone:
    I have more than 200 forms need to compile. All the forms have libraries, object groups attached, they also call stored procedures in the database.
    When I run this code :
    FormModule frm= (FormModule) JdapiModule.openModule("/tmp/"+fileName);
    frm.compile();It reports error like this :
    Exception in thread "main" oracle.forms.jdapi.JdapiStatusException: _jni_compile_form failed
         at oracle.forms.jdapi.BaseAPI._jni_compile_form(Native Method)
         at oracle.forms.jdapi.FormModule.compile(Unknown Source)
         at oracle.forms.developer.JDAPIFormsApi.attachObject(JDAPIFormsApi.java:54)
         at oracle.forms.developer.JDAPIFormsApi.main(JDAPIFormsApi.java:71)Through forms builder, I need to connect to database, put all libraries and resources in the folder included in FORMS_PATH, to get them compiled.
    But how to compile them with all prerequisite conditions set up in my java code ?

    An easier way would be to compile the forms via script, there are several examples on the forum.

  • Forms Metadata in Jdapi

    Hi,
    I've a problem in understanding the metadata classes in Forms 9i Jdapi. Can anybody explain me the differences between
    - JdapiMetadata
    - JdapiMetaObject
    - JdapiMetaProperty?
    I do not undersand the exlanations in Forms Online Help and in Jdapi JavaDoc.
    Is there an example where all three classes are used, so the differences get clear?
    Thanks,
    Andreas

    Ok here goes.
    JdapiMetadata is a collection of all the metadata for all the Forms object types. You can iterate through the list to get a JdapiMetaObject for each forms object type.
    So a JdapiMetaObject represents a particular Forms object - lets say a Block. It provides all sorts of information about the object - e.g. what types could be the parent of this object, and most importantly it will give you access to the JdapiMetaProperty objects that describe each property available in this object. So the block object for instance will have JdapiMetaProperty properties that define the Query data Source, no rows displayed etc etc.
    JdapiMetaProperty itself decribes the property - what values are valid, is it settable, what constants are available etc.
    So this is all a master -> Detail -> Detail rationship.
    Pull the JavaDoc for this from:
    http://otn.oracle.com/docs/products/forms/902docs/jdapi9i.zip
    For more info

  • Where to find and how to use JDAPI with oracle forms

    Hi All
    I want to use JDAPI for oracle forms, plz can any one suggest that where i can find the required jar for JDAPI, provide me if any links r there for downloading JDAPI.
    Thanks in Advance

    Hi Torsten Kleiber
    I am interested in changing forms buttons in our existing forms .I was trying to find if it was possible.Going thru your post I realised it is possible to change properties in existing forms .
    i have specific questions with JDAPI will i be able to change my buttons in a form to Iconic buttons.
    Could you kindly send me the code of your class in the abovementioned post (I have created a simple class to modify some forms properties.)
    I would like to have alook at it i am a Novice in java but looking at your source code may be able to give myself a head start .(I am well versed pl/sql forms and reports NO JAVA idea)
    Two while trying out the oracle demo to create a form by jdapi I was able to create a class and was unable to execute it .What do i need to install to execute it. I have forms 10 installtion with Jinitiator 1.3 installed
    DO i need to install Jdeveloper or JDK i think either of this is required. I shall be highly be obliged if u can clear my queries or any one else in the forum may wish to add to 2cents to my infinetly minimal knowledge of java

  • Library path problem using JDAPI

    HI,
    Under Windows XP, I am trying to attach library to forms using JDAPI. But the path also gets hardcoded in this case. When I move the forms to Linux and try to open the forms, it says library not found.
    Can anyone help me in this regard ?
    I would highly appreciate immediate help.
    Thanks & Regds,
    Nandakumar

    Its home directory does not contain files .profile,.bashrc,.bash_historySo feel free to create it manually.
    I have added LD_PATH_LIBRARY in file /etc/init.d/oracle-xe This not much well but all work. Of course it didn't help. Because you set it for root (again) and this setting is ignored because su command (in that script) uses oracle's enviroment settings.
    So create .bash_profile in /home/oracle (oracle's home) and set the enviroment in that file.

  • How do i get the FormDumper.java from JDAPI working?

    Hi,
    I am a novice in Java and Forms Api (C). I am interested in a solution that would reduce the time for us to make some sweeping changes across applications and hence became interested in this. By trial and error, I got a couple of examples of the Forms Api (JDAPI) working. Now I would like to test the most important thing for us the FormDumper.java (available in online help of Form9i-JDAPI). However, I get an error like "import oracle.forms.jdapi.util.Getopt.*; "failed. There exists no classes, methods, packages called util in the f90jdapi.jar. Could somebody please help me here? You can also contact me on my private mail id [email protected]
    TIA!
    Cheers
    Pramodh

    Hi Duncan,
    Are the classes available on Technet or would you send me a copy of the zipped classes as well?
    Thanks
    Kenneth
    The Doc example is missing some utility classes which are simply used to parse the command line options - I'll send you a zip file containing the classes offline
    I also notices that a few typo's (capitalisation, extra brackets) have crept into that sample - I'll get the do corrected so it will be compilable - thanks for alerting us to this.

  • Record Group in JDAPI

    Hi,
    I'm trying to create a form via JDAPI. I want to create a record group based on a SQL query.
    // create record group (SQL query based)
    RecordGroup rgSql = new RecordGroup(fmb, "RG_SQL");
    rgSql.setRecordGroupType(JdapiTypes.REGR_QUERY_CTID);
    // create the columns
    RecordGroupColumn rgc1 = new RecordGroupColumn(rgSql, "PROJ_ID");
    RecordGroupColumn rgc2 = new RecordGroupColumn(rgSql, "NAME");
    // assign query
    rgSql.setRecordGroupQuery("SELECT PROJ_ID, NAME FROM PROJECTS");
    The record group is created at correct type, but the query is not assigned, either if I include the RecordGroupColumn-lines or not.
    What am I doing wrong? Can anybody help.
    Andreas

    You're right, it's not very easy to find a reason for that ;-)
    I'm trying out new features of Forms9i, so I am testing JDAPI as well.
    The only reason I can imagine is that there is a big forms application of many hundreds of forms modules, and each of them has to be processed the same way.
    For example, to each table of an application two new fields MOD_USER and MOD_DATETIME have been added to log data modifications. If these fields should be shown in the forms modules, you have to add new items in each form.
    Andreas

  • Set trigger property using JDAPI

    Hi.
    I have a couple of forms I need to modify using JDAPI. Among others I need to set trigger property "Fire in enter query mode" from no to yes. But I just cant find the way how to do this.
    Any help would be appreciated.
    Gregor

    This help may have some info..
    http://www.oracle.com/webapps/online-help/forms/10g/
    Please expand the "Programming Oracle Forms with JDAPI" item and look inside.
    http://www.oracle.com/webapps/online-help/forms/10g/state/content/navId.3/navSetId._/vtTopicFile.jdapi%7Cjdapi_subclassobjprops~html/vtTopicId./

  • Power of JDAPI

    Hi Gurus
    We are in the process of exploring the possibility of using JDAPI for ui enhancements during migrating our Forms to 10g (from 6i). We re quite fascinated by the power and simplicity of JDAPI. We were able to dissect any information from the form using JDAPI and the besst thing is that the code is reusable for the next form. What was a manual task before is now simplified and can be automated using JDAPI.
    We are in the process of exploring the possibility of using JDAPI to enforce standards and do atomatic code review in forms. Has anyone done that before.
    any thoughts
    Rgds
    Arvind Balaraman

    We did the same thing with the JDAPI on converting 6i to 10g.
    I'm currently setting up version control (Subversion) combined with automatic builds using CruiseControl/ANT. It is my intention to enhance these automated builds with several automated checks. Simple things like if all database objects are valid, but also enforcing Forms standards using the JDAPI. For example checking if the size of a Form is not outside the limits set in our standard. Developer tend to use all available screensize on their monitor, but users might very well run lower resolutions.

  • Jdapi 255 context limit?

    Hello,
    I iterate over some forms with Jdapi, but I hit a "Could not create new forms context" after 255 forms, even If I call Jdapi.shutdown() between the iterations to clean up resources. Any ideas?

    Hello,
    I iterate over some forms with Jdapi, but I hit a "Could not create new forms context" after 255 forms, even If I call Jdapi.shutdown() between the iterations to clean up resources. Any ideas?

  • JDAPI problem with Developer 10g10.1.2.3

    Hi,
    I am trying to make some automatic changes to some forms using JDAPI. The process run smooth when using instalations of Developer 9.0.4 and Developer 10g10.1.2.0.2. When using Developer 10g10.1.2.3 I get a "Can´t open file" and "Unable to create new form context" error. My customer only has Develper 10g10.1.2.3.
    Any suggestions?
    Thanks in advance.

    Helllo,
    Yes, I think I did. I have tried, with that version, in Windows 2000, in Linux and in Unix with the same result in all the cases.

  • Rattacher JDAPI de Forms6i

    Bonjour,
    1.Comment rattacher la bibliothèque JDAPI de Forms6i à JDevelopper?
    On a essayé mais apparement ça ne marche pas
    2. On a voulu essayer d'ouvrir un module Forms ainsi
    Jdapi.setFailLibraryLoad()= true;
    Jdapi.setFailSubclassLoad()= true;
    FormModule frm= FormModule.opren("chemin_module");
    mais on a eu des exceptions:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no ifjapi60 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at oracle.forms.jdapi.Jdapi.<clinit>(Unknown Source)
    at oracle.forms.jdapi.FormModule.open(Unknown Source)
    at oracle.forms.jdapi.FormModule.open(Unknown Source)
    at oracle.forms.fd.Panel1.main(Panel1.java:62)
    Est ce que vous avez une idée de la solution?
    Merci.

    Hello, I have this error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\Oracle\Dev6i\BIN\ifjapi60.DLL: The operating system cannot run %1
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
         at java.lang.System.loadLibrary(System.java:992)
         at oracle.forms.jdapi.Jdapi.<clinit>(Unknown Source)
         at oracle.forms.jdapi.FormModule.open(Unknown Source)
         at oracle.forms.jdapi.FormModule.open(Unknown Source)
         at pkg_ana.AnalizarFormularios.main(AnalizarFormularios.java:179)
    How can I fix it?
    Thanks.

  • 3rd party Forms analysis tools

    Anybody heard of any tools for performing analysis on Forms? Currently using 6i, but am migrating to 10g shortly. We had been using SQL-Impact, but one of our developers said it won't work with 10g.
    Specifically we need the ability to see a nice report/list of database object usage for a form and to see what forms are using a particular database object. Things like select vs insert vs update analysis would be nice too. The Object List Report currently in Forms is pretty useless, as it just dumps the entire in a poorly searchable format.
    I've been told that we won't be installing Oracle Designer anytime soon, so I'm guessing that is not an option either.

    Did you look into using JDAPI for this. It is a very simple yet powerful API. you can mine any information from forms using JDAPI
    Rgds
    Arvind Balaraman

Maybe you are looking for