Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Call Java from C

843829Jul 10 2003 — edited Aug 10 2003
Hi,

I'm calling JVM from C, to start a Java Program. It's OK and works.
I made a shared libray and exchange execute function both and C and Java.

But, how keep a Java Class in memory.. I mean...
I have a Java Class, that implements a "kind" of Session and few methods.
I need call this class from C, keep it on memory, and start call other methods (always in the same session)..

Like :

Start (Java Program Started with few parameters, create the "SESSION")
Send_Package("1") (Method Java, inside this method has a reference to the "SESSION")
Send_Package("2")
Send_Package("3")
Stop (bye bye Java VM)

Is it possible ???
Thanks,
Juliano
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2003
Added on Jul 10 2003
5 comments
160 views