Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JNI invoking

Status
Not open for further replies.

Cagliostro

Programmer
Sep 13, 2000
4,226
GB
Hi,
I'm trying to invoke JVM from C++ by using JNI. With earlier versions everithing was Ok, but with Java 1.5 I can't just load the JVM by using JNI_CreateJavaVM. Do anyone have any experience in invoking java 1.5?

Ion Filipski
1c.bmp
 
I'm probably being daft, but you have passed the correct version constant to the JNI_CreateJavaVM?

In 1.4 it was JNI_VERSION_1_4, so I'm guessing (I've not actually done any 1.5 JNI) it needs to be JNI_VERSION_1_5 for you.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
I don't have experience myself, but know of some cases that works with both JVMs. What error are you getting?

Cheers,
Dian
 
there is no JNI_VERSION_1_5 in headers
I've tried to find in headers where is JNI_VERSION_1_4 and looked at #define, but anyway coudn't create any JVM

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top