Call Java from C
843829Jul 10 2003 — edited Aug 10 2003Hi,
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