Importing Java classes in Forms 6i

Hi
When I try to import java classes using the option available in forms 6i,I get the following error
PDE-UJI001 Failed to create the JVM.
ne clue?
Thanks
Gangs

You have installer the JDK 1.2 (This software located in a Sun Microsystems Web Site), and you have a configure the your PATH:
PATH=%PATH%;< path your JDK installed >;
If you have Designer 6i installed in your machine, then your Enviromento Variable PATH = PATH=< path your JDK installed >;%PATH%;
After configure the PATH, you have a create another Enviroment Variable CLASSPATH with:
Example:
CLASSPATH=C:\oracle\designer\TOOLS\COMMON60\JAVA\IMPORTER.JAR;c:\jdk1.2.2;
Test your Forms 6i.

Similar Messages

  • How to run the imported java class in form

    Help!!!!!
    Pls help me to run the imported java class in forms.
    Package is created in forms while imported one class called
    singlexml.class and that package has one procedure and one
    function.
    I just wanted to run that class.I mean the new package.
    Thanks
    Anil

    Hi,
    It is because the converter works on byte code and it only supports a subset of the Java language (see the JC specifications). It is kind of like compiling you code on Java 6 and trying to run it on Java 5. The JCDK outlines the required compiler version.
    Cheers,
    Shane

  • Cannot import Java classes to form

    I am using Forms Forms [32 Bit] Version 10.1.2.0.2 (Production).
    I want to use the Persian Calendar from this web-site http://persiancalendar.sourceforge.net/.
    I download the stuff and there are 2 JAR files.
    I did this:
    -- Put the JAR files in my E:\Ora_Dev_10g_R2\forms\java directory
    -- Made an entry of these 2 in the E:\Ora_Dev_10g_R2\forms\server\formsweb.cfg file
    Now, when I open a form and got IMPORT JAVA CLASSES, I Can't see the classes.
    The directory structure of the 2 JAR files (after expanding is like this):
    persiancalendar.jar
    -> E:\Ora_Dev_10g_R2\forms\java\persiancalendar\com\ghasemkiani\util
    -> under util there is the sub-dir icu
    icu4j_3_2_calendar.jar
    -> E:\Ora_Dev_10g_R2\forms\java\icu4j_3_2_calendar\com\ibm\icu
    -> under icu there are these sub-directories impl, lang, math, text, util
    The E:\Ora_Dev_10g_R2\forms\java is in my CLASSPATH:
    C:\>echo %CLASSPATH%
    .;e:\Ora_Dev_10g_R2;*e:\Ora_Dev_10g_R2\forms\java*;D:\Program Files\QuickTime\QTSy
    stem\QTJava.zip;

    Scott,
    I agree with Abdetu, you should create your own thread for your question. However, to set an environment variable in UNIX you declare the variable and then export it. For example, in your default profile you could add the following:
    FORMS_BUILDER_CLASSPATH='Your Path Here'
    export FORMS_BUILDER_CLASSPATHCraig...
    Edited by: CraigB on Feb 4, 2011 11:24 AM

  • Importing java class from forms 6i

    Dear people
    I want to import very simple java class from forms 6i, i went to programs then i choose import java classes, then it gives me error message PDE-UJ1001 failed to create the jvm.
    please tell me how to solve the problem.
    Yasser

    +... not a Java question. Post moved from the New To Java to the Forms forum.+

  • Importing java class in form 10g

    hi
    I have successfully imported a java class in my form but when i am trying to import java.lang.float, it is throwing me the following error:
    Importing Class java.lang.float...
    Exception occurred: java.lang.ClassNotFoundException: java.lang.float
    Could anybody let me know what jar file i am missing and in what path should i add the jar file.
    Thanks in advance,

    Hello,
    float is not an object. Try : java.lang.Float
    Francois

  • Can't Import java class in form 10g

    Hi All,
    I have tried to call a web service from oracle form 10g
    so, I read your available document (How to call Web service from Form 10g)
    http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm#r1
    but when I've created a web service from WSDL file and I've deployed it to JAR file using Jdeveloper 10g (10.1.2.1.0).
    I tried to import it into form builder 10g but i have the error :
    java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
    Please, can any body help me to solve this problem?

    Have you put the jar file in the classpaths??

  • "Import Java Classes"in Oracle6i Forms

    Hello
    I have two questions regarding importing java classes in Forms 6i
    1- How we can add my own class to this list, so that I can import it directly in form 6i and use it?
    2- When these classes are used in form development, are they fully imported to client side or only class wrapper is ported to forms. I m asking this question, cuz I want to develop my application with all bussiness logic(Java classes) in middle tier ie Form Server.
    Can anyone guide me in this regard
    Thanks in advance
    Asif

    OK answers to the questions are:
    1) If your class is on the classpath it will be picked up by the Java importer but you have to restart Forms if you add the class to the path
    2) THe java importer is for middle tier. In Forms, all ofthe application logic is on the middle tier and if you want it integrate this with Java the importer will create a PLSQL wrapper to call the Java - in pretty much the same way as ORA_FFI. (So NOT imported into the client)
    There are some white papers on OTN.
    Regards
    Grant

  • Importing Java class problem!

    Hello
    I have problem by Importing java class into form. When I select in Forms Builder from menu: Programs/Import Java Classes it returns error: PDE-UJI001 JVM not able to create!
    Can someone know what I must do to fix that problem?
    Thanks, Chrity

    It is a shame because it, probably, contains no special 1.5 new instruction at all.
    Maybe it would be possible to try replacing the current JDK/JRE of your <ORACLE_HOME>/jdk installation after a safe backup of course.
    You probably have a very little chance that it works, and it also won't be supported.
    Francois

  • PDE-UJ1001, while trying to import java classes.

    Hi,
    When I try to import java classes into forms using the java
    importer, I get an error stating PDE-UJ1001-Failed to create
    JVM. I tried installing a patch in Developer 2000(Path 4a). But
    still it doesnt work. Could anybody guide me in this?
    Thanks,
    Karthick.

    am getting similar error - my dba has suggested that oracle developer uses the jvm from ie4 but i'm sure that cant be true as i thought the jvm was built in.
    could somebody out there clarify this or inform me whats missing..
    error
    from dev 6i forms builder (6.0.8.11.3) on 8i (8.1.7.2.0) when trying to select option 'import java classes' from program menu returns error 'PDE-UJ1001 Failed to create the JVM.'
    regards and thanks in anticipation....
    vin ferguson

  • Using java classes in forms

    Hi All
    Has anyone ever imported java class in forms and then run those forms successfully on web ??????
    Plz help ... its urgent ..... i m successfully running the forms after importing java code in client/server mode but unable to run on web.
    I have set the wrapper.classpath in jserv.properties file of apache but the form is unable to locate the java class.
    where to set the classpath then ????

    You have installer the JDK 1.2 (This software located in a Sun Microsystems Web Site), and you have a configure the your PATH:
    PATH=%PATH%;< path your JDK installed >;
    If you have Designer 6i installed in your machine, then your Enviromento Variable PATH = PATH=< path your JDK installed >;%PATH%;
    After configure the PATH, you have a create another Enviroment Variable CLASSPATH with:
    Example:
    CLASSPATH=C:\oracle\designer\TOOLS\COMMON60\JAVA\IMPORTER.JAR;c:\jdk1.2.2;
    Test your Forms 6i.

  • Problem When Import Java Class -compilation error

    Hi all
    I made a java class that has methods to return Screen width and Height .
    package tarek;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    public class Screen
    Dimension dim ;
    public Screen()
    dim = Toolkit.getDefaultToolkit().getScreenSize();
    public double getWidth()
    double w = dim.getWidth();
    return w;
    public double getHeight()
    double h=dim.getHeight();
    return h;
    I made the jar file " screen.jar" and make it ready to use in form builder
    I opened form builder and make import java class (From program>import java class>choose the class anc click import)
    The class now imported successfully and the PL/SQL package body is:
    PACKAGE Screen /* tarek.Screen */ IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT;
    -- Method: getHeight ()D
    FUNCTION getHeight(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER;
    -- Method: getWidth ()D
    FUNCTION getWidth(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER;
    END;
    Now I made a button on the form and i WRITE THIS CODE TO INVOKE THE CLASS on when_button_pressed
    DECLARE
         vScreen_Class ORA_JAVA.JOBJECT;     
    BEGIN
         vScreen_Class := SCREEN.NEW;
    END;
    My problem is I have compilation error
    error 306 AT LINE 5 , COLUMN 25
    wrong number or types of argument in call to "NEW"
    I do not know what is the reason of this compilation error?
    Is it because the method in java return "double datatype" while in oracle return "number datatype"
    Please help
    Edited by: [email protected] on Dec 28, 2009 10:24 AM

    Sarah, I ca not move my thread to JDeveloper because it is not java issue. The problem is with my PL/SQL code and the way I make Import Java class to forms Builder. The Java code is OK.
    Andreas Thank you so much for replying. In fact I made a full compile "Ctrl+Alt+K". but still error
    The following is the package Body
    PACKAGE BODY Screen IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    args JNI.ARGLIST;
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    args := NULL;
    RETURN (JNI.NEW_OBJECT('tarek/Screen', '()V', args));
    END;
    -- Method: getHeight ()D
    FUNCTION getHeight(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'tarek/Screen', 'getHeight', '()D', args);
    END;
    -- Method: getWidth ()D
    FUNCTION getWidth(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'tarek/Screen', 'getWidth', '()D', args);
    END;
    BEGIN
    NULL;
    END;
    ---------------------------------------------------------------------------------

  • Forms6i - Import Java Classes

    Hi,i need import java classes to Forms.When I choose in menu
    Program/Import Java classes, program shows error: PDE-UJI001
    Failed to create the JVM. I tried set classpath,paths but
    nothing. Thank you for any tip:-)

    Download and install the JDK 1.2.2.
    2. Assuming the JDK 1.2.2 is installed in c:\jdk1.2.2 directory
    and the JRE in
    C:\PROGRA~1\JAVASOFT\JRE\1.2 directory; ORACLE_HOME=C:\Dev6iR2.
    Set the PATH to
    set PATH=%PATH%;c:\jdk1.2.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2
    \bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin\classic
    ( If you are using ias9i then the JDK 1.2.2 comes with the ias
    installtion ,
    in this case please set the PATH to
    D:\ias9i\Apache\jdk\bin;D:\ias9i\Apache\jdk\jre\bin;D:\ias9i\Apac
    he\jdk\jre\bin\classic;%PATH% )
    3. Set the CLASSPATH to set CLASSPATH=%CLASSPATH%;C:\Dev6iR2
    \TOOLS\COMMON60\JAVA\IMPORTER.JAR;.
    (If you do not set the CLASSPATH correctly you will get the error
    PDE-UJI002 Unable to find the required java importer classes)
    4. Now run the Forms Builder by using the command.
    C:\Dev6iR2\bin\ifbld60.exe
    Now the Java Importer Should Run fine

  • Exception : importing java classes

    Hi all,
    I'm trying to import java classes in forms 9i, but it generates me this error :
    Import de la classe prj.proxy.MyWebService1SoapHttpPortClient...
    Exception : java.lang.NoClassDefFoundError: oracle/webservices/transport/ClientTransport
    Please give me some help with this issue.

    For the importer to work, your jar-file must be part of the CLASSPATH-environment-variable-setting. If you're classes to be imported contain references to external classes (as you to with your webservices), that jar-file must also be part of the CLASSPATH.

  • Error while importing java class into oracle forms 10g

    Hi
    I have generated a web service client using jdeveloper 10g. It consists of complex type methods. I am trying to import the class files using java importer in oracle form 10g. I am able import all of them successfully except one. That one is the main method. Please see the error and suggest me how to overcome this error.
    Exception occurred: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
    Thanks in advance

    Do you see oracle/jdeveloper listed in "Import Java Classes" when you try to import?
    If not, make sure you add C:\DevSuiteHome_1\jdev\lib\jdev.jar to FORMS_BUILDER_CLASSPATH in registry
    Also excetion indicates: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
    If you typing it - type: oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub

  • Forms 10.1.2 - Imported Java Classes are not running on JNI.NEW_OBJECT call

    Hi All,
    I've created a java class to call a webservice. This has been developed and tested in JDeveloper and works ok (using JDev Wizards - so it's generated code). I've created the JAR from it, imported the classes into Forms Builder and have my package and imported the java exception_ class too.
    So, everything compiles and looks good. When I run the application I can see in the console that my JAR is included in the loaded list. When I call the class (basing my code on the Forms Webservice example here on OTN) it doesn't work. I get the error ORA-6503 - function returns no value.
    I can step through the code in debug and it's in the generated constructor "new" function when the JNI.NEW_OBJECT is executed. I can't see into that so I'm a bit stuck ... I don't whether it's my java that is now failing or the system is failing to call it :
      FUNCTION new(
        a0    VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
      BEGIN
        args := JNI.CREATE_ARG_LIST(1);
        JNI.ADD_STRING_ARG(args, a0);
        RETURN (JNI.NEW_OBJECT('oracle/forms/atrium/wsexport/proxy/AtriumExportWSSoapHttpPortClient', '(Ljava/lang/String;)V', args));
      END;Has anyone any experience or pointers for me ?
    Are there any extra JAR files I need to include in the CLASSPATH ?
    Forms Builder is 10.1.2.0.2, the Application Server is 10.1.2.3 and it JDeveloper 10 compiling Java 1.4. All on a Windows platform.
    TIA
    Steve

    Not sure if this is exact the document you are searching for, but this one works for me:
    http://www.oracle.com/technetwork/developer-tools/forms/webservices-forms-11g-094111.html
    It's for 11g, but I don't think there is much difference to 10g.
    Did you add your Jar file also to the classpath in the environment file of your webconfig?
    cheers
    Edit: too slow somehow -.- heading for a cup of black coffee
    Edited by: christian erlinger on 03.09.2010 01:18

Maybe you are looking for

  • Reinstalling Mountain Lion issue.

    Reinstalling Mountain Lion issue. After I erased my HD and reinstalled OS (w/o file transfer from other Mac option) - opened Safari and saw my old bookmarks there already. Does that mean that reinstall didn't go correctly?

  • Help is my home hub faulty

    Help please, my local exchange upgraded broadband on 6th aug, I got great download speeds for about a week then I noticed when I used phone  the broadband would drop then come back on then drop again when the call finished. Called India to report pro

  • Flash motion presets

    I've been working with Flash CS3 for a little while, and just noticed that in the newest release (CS4) they have motion presets you can use - which I think is great! However, my employer is not going to upgrade me to CS4 just for that! Does anyone kn

  • Specify one folder down in .mxi

    How can you specify a folder one down within the File Source attribute of the .mxi file? <file source = "..\MyDirectory\license.txt" destination = "$website\my directory" shared = "false" /> I tried ..\ and that did not work. I don't want to "hardcod

  • G5 tower chimes after switch on, fans start and then it switches off, all in about 5 seconds

    G5 tower chimes after switch on, fans start and then it switches off, all in about 5 seconds.  Does anyone know how to get this mac started?