Operating System - HP-UX
1838671 Members
6446 Online
110128 Solutions
New Discussion

Problem with Java Virtual Machine in C program

 
bono
New Member

Problem with Java Virtual Machine in C program

I have a small C program trying to instantiate a local Java class as a sample. The JVM would not create because of a "corrupted library" message. I tried to switch the libjvm.sl lib pre installed with java 1.3 with one I have from other source but it neither worked. I suspect another library is bugged. I know that the reverse works fine ie Java class calling some C APIs...
It would be really nice of you if you could provide me with any help on this topic. For your convenience, I attach my test files.

2 REPLIES 2
Bill McNAMARA_1
Honored Contributor

Re: Problem with Java Virtual Machine in C program

don't you need JINI or something like that to do this?

You may find some useful info at:

http://www.hp.com/go/java
and
http://www.hp.com/go/developers

sorry I can't help more..

Later,
Bill
It works for me (tm)
bono
New Member

Re: Problem with Java Virtual Machine in C program

Thank you for the links that resulted very useful regarding the SHLIB_PATH variable. It seems that all the Java libraries paths had been omitted during installation and the ones I had added were not enough.
The error message was just a bit confusing and not clear. I should upgrade the points to 6-7 then ;-) but don't know how to do it !