PDE-UJI001 Failed to create JVM

Posted on 2005-04-15
Last Modified: 2010-05-18
The following error shows when I try to "Import Java Classes" in Forms 6i

PDE-UJI001 Failed to create JVM

I have installed JDK 1.4.2 and I already set the next variables


do you know a solution??


Question by:arcano232
    LVL 47

    Expert Comment


    Make sure you installed properly:
    - JDK 1.2.2 for Sun Solaris
    - appropriate OS patches required by JDK 1.2.2
    Make also sure that the LD_LIBRARY_PATH and CLASSPATH environment
    variables are setup correctly, as described bellow.

    Setup of Java Importer with 6i Release 2 for Solaris
    The setup of the Java Importer requires the setting of the correct environment
    variables to enable the Forms Builder, or Runtime Engine, to find the required
    JRE and Java class files. The environment must be set prior to starting the
    Forms Builder (f60desm), Runtime (f60runm/f60run), or Server (f60srvm).
    To locate the Javasoft JRE 1.2.2, Forms uses the LD_LIBRARY_PATH variable to
    find the file. The file is located in the directory
    which the JDK was installed. For example, if you installed the JDK 1.2.2 in
    the /u03 filesystem, the would be located in the directory
    /u03/Solaris_JDK_1.2.2_06/jre/lib/sparc. For this example, the LD_LIBRARY_PATH
    would need to include this directory and the $ORACLE_HOME/lib.
    To locate the Java Class files, Forms uses the CLASSPATH variable. The Java
    Class files may be broken into the following two areas:
    - Classes that implement the Java Importer functionality
    - Custom classes generated by the Java Programmer.
    The Oracle classes are provided in a jar file called importer.jar which is
    located in the $ORACLE_HOME/lib directory. In addition, these class files must
    also exist in the directory $ORACLE_HOME/forms60/java/oracle/opb/javaImporter.
    If the opb directory does not exist, the class files may be extracted from the
    jar file using the following steps:
    1. cd /tmp
    2. jar xvf $ORACLE_HOME/lib/importer.jar
    3. cd $ORACLE_HOME/forms60/java/oracle
    4. cp -r /tmp/oracle/opb .
    Note: In testing, it was found that the $ORACLE_HOME/lib/importer.jar must be
    the last entry in the CLASSPATH variable.
    The following is an excerpt from a sample environment script for the csh shell
    used to setup the required environment variables for the Java Importer.
    Note: This assumes the jre is installed in the /u03 filesystem.
    setenv ORACLE_HOME /u01/app/oracle/product/forms6ir2
    setenv CLASSPATH $ORACLE_HOME/forms60/java:$ORACLE_HOME/lib/importer.jar
    setenv PATH /u03/Solaris_JDK_1.2.2_06/bin:$PATH
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:/u03/Solaris_JDK_1.2.2_06/jre/lib/sparc
    To test if the java importer is working correctly, start the Form builder and
    select Import Java Classes... from the Program item in the main menu of the
    object navigator. This should bring up a window titled Import Java Classes. If
    it does not, check the environment for errors focusing on the LD_LIBRARY_PATH
    and CLASSPATH settings.


    Author Comment

    I 'm working with windows 2000 but I don't have the the file
    LVL 47

    Accepted Solution

    Installed Forms 6i Rel 2 on a NT machine. When trying to Import the Java  
    Classes getting the errors  
    PDE-UJI0001 Failed to create the JVM
    Solution Description
    You need to to install JDK 1.2.2 to run the Java Importer.  And set the PATH's  
    and classpath's correctly.
    1. 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\Apache\jdk\jre\bin\classic;%PATH% )
    (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.
    Now the Java Importer Should Run fine.
    Problem Description
    Consider a fresh installation of Developer 6i Release 2 on a Sun  
    Solaris machine. This holds Forms version
    JDK 1.2.2 and appropriate OS patches are installed properly.
    Activate the Java Importer Tool. To do so, from the Forms Builder panel,  
    choose menu Program->Import Java Classes...
    You then get an dialog box showing following error:
    PDE-UJI002 Unable to find the required Java Importer classes
    Solution Description
    First of all, make sure that the CLASSPATH variable is set correctly.
    It should hold $ORACLE_HOME/forms60/java:$ORACLE_HOME/lib/importer.jar
    (for developer 9i + 10g:  
    Check the definition of FORMS90_BUILDER_CLASSPATH and CLASSPATH in the environment,  
    It should point to %ORACLE_HOME%\jlib\importer.jar)
    Make also sure that Java Importer class files are located where needed
    (ie $ORACLE_HOME/forms60/java/oracle/opb). To do so:
      1.  cd /tmp
      2.  jar xvf $ORACLE_HOME/lib/importer.jar
      3.  cd $ORACLE_HOME/forms60/java/oracle
      4.  cp -r /tmp/oracle/opb .
    The Java Importer tool needs the JDK to be configured properly, with
     environment variable value.  
    The Oracle classes are provided in a jar file called importer.jar which is
    located in the $ORACLE_HOME/lib directory.  In addition, these class files must
    also exist in the directory $ORACLE_HOME/forms60/java/oracle/opb/javaImporter.
    If the opb directory does not exist, the class files may be extracted from the
    jar file as described above.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    NMAP shows service 1521 is closed 13 69
    Oracle sql question 9 58
    need to improve Oracle query with multiple joins 14 51
    Stay Alert! 13 48
    I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
    Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
    This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
    This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now