Operating System - HP-UX
1833863 Members
2132 Online
110063 Solutions
New Discussion

JNI_CreateJavaVM() hang on hpux, called from shared object library

 
Johann Niederer
New Member

JNI_CreateJavaVM() hang on hpux, called from shared object library

We would like to call Java methods from c++. Therefore we use JNI. The application should run on solaris, windows, aix and hp/ux. It works on windows so far, on hp/ux we have following situation: JNI_CreateJavaVM() does not return. The "-verbose:jni" option shows, that the last message we get back is: "[Dynamic-linking native method java/security/AccessController.doPrivileged ... ". We call JNI_CreateJavaVM() from a shared object library. When calling it from the main() function, it works and returns with returncode 0. We would very appreciate any help. Thanks, Johann
1 REPLY 1
lassehab
Advisor

Re: JNI_CreateJavaVM() hang on hpux, called from shared object library

Hi Johann,

I don't know which java version you use ( java -version ) in which OS ( uname -a )
But you can see this exemple about using JNI on HP-UX :

file:/opt/java/docs/hpux/HPUX_JNI.html

Try to use the same options, it' very importante ( +u4 and .... )

Hope it's help
I love Java OS