Wow, an error message that makes sense (I must have written it ;-)>
Of course, it only makes sense if you already know what it means.
What it means is that the location of your Java virtual machine is not known to the system. When you use CALLJ, it must create an instance of the JVM in order to load and call the classes.
So:
1) You need to add the location of your jvm commands (like java to your PATH environment variable [though this isn’t your issue, you should do it]).
2) You need to add the location of your JVM shared library into the environment variable used by your system:
a. AIX – LIBPATH
b. HPSUX – SHLIB_PATH
c. Most other UNIX/Linux – LD_LIBRARY_PATH
d. Windows - PATH
3) The jvm will be called JVM.DLL, or jvm.so, or jvm.sl etc and will usually be in a subdirectory of somewhere obvious like “Program Files\java\jre1.6_01” and the subdirectory will be called lib.
4) Login in again to your system with these variables set up and then it will all work
Jim
Hello Prakash,
Those settings in .profile should be enough for you (AIX and IBM 1.4.2 JVM considered):
export JREDIR=$HOME/../jbase/jbase/jdk/jre (set it to your JRE location)
export JRELIB=$JREDIR/bin:$JREDIR/bin/classic
export LIBPATH=$LIBPATH:$JRELIB
export LDR_CNTRL=USERREGS@MAXDATA=0x80000000
export CLASSPATH=$HOME/../tcserver/lib/basicmqbridge.jar:$HOME/../tcserver/ext/connector.jar:$HOME/../tcserver/ext/com.ibm.mq.jar (to obtain MQ connectivity)
See more here:http://www-128.ibm.com/developerworks/java/jdk/aix/142/sdkguide.aix32.html#loadjvmforjni
or in documentation provided with jBASE.
The most important setting we were missing was LDR_CNTRL. Have a fun :) To obtain more diagnostic information try to invoke JVM with extra options (JBC_JVMOPT or something like that - check out docs).
Kind regards
Pawel
Hello Prakash,
Those settings in .profile should be enough for you (AIX and IBM 1.4.2 JVM considered):
export JREDIR=$HOME/../jbase/jbase/jdk/jre (set it to your JRE location)
export JRELIB=$JREDIR/bin:$JREDIR/bin/classic
export LIBPATH=$LIBPATH:$JRELIB
export LDR_CNTRL=USERREGS@MAXDATA=0x80000000
export CLASSPATH=$HOME/../tcserver/lib/basicmqbridge.jar:$HOME/../tcserver/ext/connector.jar:$HOME/../tcserver/ext/com.ibm.mq.jar (to obtain MQ connectivity)
See more here:http://www-128.ibm.com/developerworks/java/jdk/aix/142/sdkguide.aix32.html#loadjvmforjni
or in documentation provided with jBASE.
The most important setting we were missing was LDR_CNTRL. Have a fun :) To obtain more diagnostic information try to invoke JVM with extra options (JBC_JVMOPT or something like that - check out docs).
Kind regards
Pawel
Dnia 24-04-2007 o godz. 7:28 jayaprakash kv napisał(a):