JVM Invocation in AIX 6.1

Hi all,

I'm trying to do JVM invocation from C++ in AIX 6.1. So inorder to do that, i'm loading libjvm.a.
When i load the libjvm.a from the path where jre is installed (i.e /usr/java5/jre/bin/classic), it loads correctly and the program works correctly.
But according to my requirement, the jre will be present in some user defined path say /user1/jre/bin/classic. When i load libjvm, from the user defined jre path, jnicreatejavaVM fails.

Could anyone let me know why it behaves in this way and what needs to be done ?

Thank you.