java - JVM Embedded into C, does not appear under running programs -
i have c program (working in solaris sparc), creating jvm , calling java application via jni.
the jvm created , java program works expected, don't see java process ps -ef | grep java command.
any idea reason?
@apangin , @the8472 both correct, not find java process anywhere, using jni_createjavavm embedding jvm functionalities in process.
i'll try give evidence of through references documentation (jni sparsely documented i'll try).
from jni specification:
creating vm
the
jni_createjavavm()function loads , initializes java vm , returns pointer jni interface pointer. thread calledjni_createjavavm()is considered main thread.
and few lines below:
the attached thread should have enough stack space perform reasonable amount of work.
this confirms jvm instance lives in same context invoked jni's createjavavm method, no external dedicated process.
Comments
Post a Comment