> I'm trying to embed JVM in my application. The program is compiled and
> linked without any problem.
> During runtime when i try loading the libjvm.a and create the JVM, i get
> this error.
> Unable to dlopen libjava.a: No such file or directory
> Cannot obtain system-specific information
Sounds like a LIBPATH problem. What do you have it set to? Do you have it
set? Make sure you have *both* the directory containing libjvm.a (usually
.../jre/bin/classic) and the parent of that directory (.../jre/bin) in
AIX allows you to manipulate the LIBPATH variable in your program so you
o getenv("LIBPATH") to get any existing setting
o compute a new value with your two directories appended
o setenv("LIBPATH=...") to save your new setting
before you try to dlopen() the JVM library. Or you can set the variable in
your environment before you start you program.
(to email me, remove "warez.")
Please do not send me email copies of newsgroup postings.