PDE-UJI001 Failed to create JVM

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??


Who is Participating?
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.


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 javalib.so file. The file libjava.so 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 libjava.so 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.

arcano232Author Commented:
I 'm working with windows 2000 but I don't have the the libjava.so file
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.