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.

Similar Messages

  • Availability of JDAPI documentation

    Team,
    I am trying to locate the documentation available for JDAPI (Java Development API) for Oracle forms 9i. Does anyone has information about it?
    Would appreciate any help.
    Thank you,
    Rajesh Gupta
    [email protected]

    Matt,
    there is a zip-file on OTN under the Forms6i section about openness and integration called launchpad. It contains a PDF explaining the basics and some C++ examples.
    You also might want to checkout www.orcl-toolbox.com - FormsAPI Master also gives you access to the API, but in a PL/SQL style scripting language , instead of C++. The example scripts that come with it are quite useful to learn more about using the API (even if you use the oracle C++ API).
    Cheers,
    Stefan

  • Can not connect from Forms6i to PO8i.

    Hi,
    My PC is a NT named 'oracle'. I have first installed Forms6i in DEFAULT_HOME, c:/orant.
    PO8i is installed as:
    Oracle Home: ora8i
    Full Path: c:\orant\ora8i
    Choose Typical Install
    Global Database Name: ora8i.oracle.master.com.au
    SID: ora8i
    Then I added an entry in c:\orant\net80\admin\tnsnames.ora as:
    test.world
    (DESCRIPTION
    (ADDRESS_LIST
    (ADDRESS
    (PROTOCOL = TCP)
    (Host = 127.0.0.1)
    (Port = 1521)
    (CONNECT_DATA = (SID = ora8i)
    I can connect to PO8i from SQL*Plus using scott/tiger or scott/tiger@ora8i.
    When I tried to connect to PO8i from Forms6i using scott/tiger@test or scott/tiger@ora8i. I got ORA-12154: TNS:could not resolve service name.
    If I use scott/tiger@test from SQL*Plus, I got the same error.
    If I use scott/tiger from Forms6i, I got ORA-12203: TNS:unable to connect to destination.
    Help please.
    Sue
    null

    Try taking off the .world in the NET80 tnsnames.ora file
    Jason Pepper
    Snr Product Manager
    Oracle Enterprise Internet Tools

  • How can I call my chart in Forms6i on When Button Press Trigger?

    Hi Friends,
    I have make a chart in Graphic Builder 6i and save on path C:\graph\test.ogd
    Now I want to run this Chart from Form6i on When Button Press trigger.
    I have call my report in forms using this command on When Button Press trigger.
    Run_Product(reports,'C:\Cheema\Qdir_store\reports\pmms\sec_backlog',asynchronous,runtime,filesystem,TO_CHAR(NULL));
    So tell me How can I call my chart in Forms6i?
    Please reply me on urgent.
    Thanks,
    Shahzad

    Just to recall after a long break of couple of years..... Pls check out if not wrong.
    First of all you need to embeed the chart object on your layout window and make it visible = FALSE. This is a design time work. In the button press event, show the chart object by setting the visible property = TRUE.
    Note, i could not paste u the sample code as i don't have forms installation on my PC. The above states is a logic you can apply.

  • How to call a Forms6i file from Forms10g

    Dear all,
    Can any one help me on how to call a x.fmb in FORMS6i version from a y.fmb in FORMS10G version.I used CLIENT_HOST( ) buitin for calling a 6i version x.fmb from 10G version y.fmb,but its not working.I gave this CLIENT_HOST( ) built in in when-button-pressed trigger.when i gave the string that is given as parameter to CLIENT_HOST( ) in command prompt the 6i fmb opens...and similarly i need to open a fmb in FORMS10G verison from FORMS6i version fmb

    Hi,
    Forms 6i modules only run on Forms 6i runtime and Forms 9i modules run on Forms 9i runtime. If you want to bring together two of these module into one application you have to upgrade from Forms 6i to Forms 9i or call it on a separate runtime using a hiost command. If you run it on the web, which Forms 9i runs only, then you use web.show_document() to call the Forms 6i release installed on Oracle Application Server 9.0.1
    Frank

  • How to use PL/SQL & Forms6i for a logon screen

    i am new user to oracle. just wanna now how to create a user logon screen using SQL and Forms6i. well, i have created a table for logon with data item of username and password. in the form, i hava successfully created the data blocks but i don't know how to link them using PL/SQL or triggers or etc.
    ur concern will be very grateful. TQ.

    Hi MatrixMan
    Just create button and write the follwing inside
    trigger when_button_pressed :\
    begin
    logout;
    LOGON(:USER_NAME,:PASSWORD );
    IF FORM_SUCCESS THEN
    MESSAGE('Login Successful');
    MESSAGE('Login Successful');
    ELSE
    MESSAGE('Check username or password');
    MESSAGE('Check username or password');
    GO_ITEM('USER_NAME');
    :USER_NAME:=NULL;
    :PASSWORD:=NULL;
    END IF;
    end;
    Thanks
    Mohammed Al-shake

  • Error in Using JDAPI (Java Development API)

    I have some forms developed in Version 6.0.8.8.0 I am using Oracle JDeveloper 9.0.4 But when I try to test these code for upgrading from version 6 to 10g I am getting following Error
    My Program Codes
    import java.io.*;
    import oracle.forms.jdapi.*;
    public class Example1 {
    // generic part
    public static void main(String[] args) {
    Jdapi.setFailLibraryLoad(true);
    Jdapi.setFailSubclassLoad(true);
    try {
    File file = new File("c:\\Amsorcl\\Forms\\chart.fmb");
    System.out.println("Exist=" + file.exists());
    System.out.println("Can Read=" + file.canRead());
    System.out.println("Can Write=" + file.canWrite());
    //JdapiModule.openModule(file);
    //JdapiModule.openModule("c:\\Amsorcl\\Forms\\chart.fmb");
    FormModule form = FormModule.open("C:\\AMSORCL\\FORMS\\CHART.FMB");
    finally {
    Jdapi.shutdown();
    Error as the result of progam
    Exist=true
    Can Read=true
    Can Write=true
    oracle.forms.jdapi.JdapiStatusException: jniinitialize: Failed to create new forms context
         at oracle.forms.jdapi.BaseAPI._jni_initialize(Native Method)
         at oracle.forms.jdapi.Jdapi.initialize(Unknown Source)
         at oracle.forms.jdapi.Jdapi.getContextPointer(Unknown Source)
         at oracle.forms.jdapi.FormModule.open(Unknown Source)
         at oracle.forms.jdapi.FormModule.open(Unknown Source)
         at Example1.main(Example1.java:22)
    Exception in thread main
    Process exited with exit code 1.

    1. Why are you using JDAPI to upgrade from 6i to 10g? You can use the Forms Migration Utility instead.
    2. Are you running this in UNIX environment? If yes, have you set the LD_LIBRARY_PATH to $ORACLE_HOME/lib directory?

  • JDAPI Error: ORA-04020: deadlock detected while trying to lock object

    I have written a JDAPI program to perform read-only impact analysis and report any problems.
    The following error is occurring:
    "A deadlock among DDL and parse locks is detected.
    This deadlock is usually due to user errors in the design of an application or from issuing a set of concurrent statements which can cause a deadlock.
    ORA-04020: deadlock detected while trying to lock object /NSPC6/CHECK_FOR_FORM_CHANGE"
    The error refers to a procedure in a PL/SQL library.
    In one case the error occurred after my final "end of processing" message, which is followed only by a call to "Jdapi.shutdown()".
    Any ideas?
    Thanks,
    Neville Sweet.

    I have written a JDAPI program to perform read-only impact analysis and report any problems.
    The following error is occurring:
    "A deadlock among DDL and parse locks is detected.
    This deadlock is usually due to user errors in the design of an application or from issuing a set of concurrent statements which can cause a deadlock.
    ORA-04020: deadlock detected while trying to lock object /NSPC6/CHECK_FOR_FORM_CHANGE"
    The error refers to a procedure in a PL/SQL library.
    In one case the error occurred after my final "end of processing" message, which is followed only by a call to "Jdapi.shutdown()".
    Any ideas?
    Thanks,
    Neville Sweet.

  • Error while using row_num function in forms6i

    Oracle forms6i
    Hai
    While using row num function in my forms i had a error.
    My coding is
    declare
    pin_no varchar2(16);
    pin_date date;
    pin_time varchar2(25);
    mstr varchar2(200);
    m_file TEXT_IO.FILE_TYPE;
    m_file_path varchar2(100) := :global.filename;
    line_count number;
    M_BARCODE VARCHAR2(16);
    M_BARDATE DATE;
    M_BARTIME varchar2(25);
    M_No number;
    Cursor c1 is
    select barcode,bardate,bartime,
    row_number() over (partition barcode order by bartime) as RN-------------------the error at this line
    from temp_attendance
    group by barcode,bardate,bartime
    order by bardate;
    begin
    If m_file_path is not null then
    m_file:= TEXT_IO.fopen(m_file_path, 'r');
    --DELETE FROM temp_attendance;     
    Loop
    begin
    TEXT_IO.get_line(m_file,mstr);
    mstr := ltrim(rtrim(mstr));
    M_barcode :=substr(mstr,1,16);
    M_bardate := to_date(substr(mstr,17,8),'DD/MM/YYYY');
    M_bartime := (substr(mstr,25,4));
    INSERT INTO temp_attendance(BARCODE,BARDATE,BARTIME,RN) VALUES(M_BARCODE,M_BARDATE,M_BARTIME,M_No);
    Exception
    when no_data_found then
    text_io.fclose(m_file);
    exit;
    End;
    End loop;
    go_block('TEST_MS1');
    clear_block(no_validate);
    For r1 in c1 loop
         :barcode := r1.barcode;
         :bardate := r1.bardate;
         :bartime := r1.bartime;
         next_Record;
    end loop;
    first_record;
    end if;
    exception
    when others then
    forms_ddl('ROLLBACK');
    message (sqlerrm);
    end;
    Thanks & Regards
    Srikkanth.M

    Hi,
    Try using:
    row_number() over (partition BY barcode order by bartime) as RN
    If that wasn't the problem, what is the error you are getting?
    Regards.

  • How do I dial a phone number from Forms6i ?? OLE2,DDE??

    How do I dial a phone number from Forms6i ?? OLE2,DDE??
    Is it do-able??
    I have a contact form that has the contacts phone number, etc... I would like to add a button to dial the number which would open the phone line (probably through my modem) and dial the number ... where I would pickup the receiver and wait for connection...
    I need an example or a "How to" link or something where if I take the time I can get it working....
    IF not, is there software to do it?
    Thanks, Bill

    Yes, great! I will check into my modem... but I remember years ago have a c program that I used to send error messages through the modem to my alpha-numeric pager. With that I started with that c program being called from REXX IBM language and it spoke modem language...
    Is there another forum that would handle this type of request? what do you call telephone support? telephony? communication links? ....
    Thanks for the input!

  • Genareting a xml file from Forms6i..

    I want to generete a xml file from database with using forms6i.
    The procedures of XSU generate a xml file output on the server
    which database has been loaded.And it works on SQL Plus..How can
    I gAnerate xml file from database on clint side with using
    Forms6i and XSU??
    Thanks for your helps..

    You can use the PLSQL xdk. This way you can use PLSQL to create
    and transform your XML.
    succes

  • How can i change the code in when new form instance trigger using JDAPI

    Hi all,
    Can anyone tell me how can i use JDAPI to modify the when-new-form-instance trigger in all my forms,coz we have around 500 FMB's ,if this is possible by using jdapi it will be better for us..
    Thanks in advance..
    Najeeb

    Hi Najeeb,
    The code I've given you should cover the basic steps - you will need to have a basic knowledge of Java if you want to use the JDAPI, there's no way around that unless you go and buy one of the off-the-shelf products for this kind of thing (I think there's one called orcltoolbox..?)
    I've written an application that does all kinds of things to Forms specific to our needs, so it's a bit tricky to just pull out the code you need, but again, the basics will be:
    String formName="C:\some_dir\some_form.fmb";
    FormModule mForm=FormModule.open(formName);
    Trigger myWNFITrig=Trigger.find(mForm,"WHEN-NEW-FORM-INSTANCE");
    String myText=myWNFITrig.getTriggerText();
    And there you have your trigger text, to do with what you please. You could put this code in the main() method of one class if you want to keep things really simple - but see how you get on, if you have any more specific questions, do come back.
    Eric - that's a very good point about using Regular Expressions. I haven't used them in my JDAPI app because I wanted to keep all my .fmbs 6i-compatible for the short-term, and a posting I saw somewhere recommended sticking to Java 1.3. Which rules out the regex facility, which only appeared in Java 1.4. Now, though, I think I needn't have worried - it surely shouldn't matter which version of Java I use to make the changes to the .fmbs. My stupid!
    James

  • Forms6i crashes on Windows 7

    I have installed Forms6i - 6.0.8.11.3 on Windows 7 SP 1 and it works fine but at times Form Builder crashes in middle of everything.
    Is there any patch I need to apply for this? I looked the Patch 18 but it tries to install it in a new home/folder than existing 6i installation.
    Your help would be really appreciated.
    Thanks,
    Zaafran

    Hi,
    See this
    {message:id=9978052}
    regards
    Yoonas

  • ORA-00164 Autonomous and Distributed Transactions in Oracle 8i - Forms6i

    Hi, in Forms6i I'm using Autonomous transactions (insert and update), and I want to use also a database link to make a query in a remote database (Distributed transaction). Even when this request are done in different PL/SQL within Forms6i, I get the error message ORA-00164 Distributed transactions disallowed within autonomous transactions. Is there a way to avoid this error message?
    Thanx

    Hello,
    I had a similar Problem, when I tried to log errormessages while selecting by db-link.
    I use pipes now to send the errormessages. The pipe is read at regular intervals and then I can Insert without using autonomous transactions.
    I hope, this will help you
    Marcus

  • Forms6i - Object Libraries

    Having "inherited" a Forms6i module from a departed developer, I obtain a "FRM-18108 Failed to load the following objects ..." error when opening the form in Forms Builder.
    The file 'fees.olb' referred to by the above error message is actually present in the same Windows directory that the form's own .fmb source is located.
    Please can someone kindly explain a workaround for the above error ?
    Thanks, Andrew.

    More than likely, your FORMS60_PATH registry (or environment) entry is incorrect. Verify that this value is the same directory as the location of the OLB and it should load up fine.
    null

Maybe you are looking for