openlvc / portico

Portico is an open source, cross-platform, fully supported HLA RTI implementation. Designed with modularity and flexibility in mind, Portico is a production-grade RTI for the Simulation and Training Community, so come say hi!
http://www.porticoproject.org
151 stars 81 forks source link

Null Value Exception in JNI_GetCreatedJavaVMs #332

Open farhan-mirzaaa opened 1 year ago

farhan-mirzaaa commented 1 year ago

Hi, I am new to portico RTI and I want to integrate this RTI with a third party application. I have downloaded this code from this repository and compiled its visual studio 2015 solution. and run the ieee1516eTestExample and it is showing the "Null value exception" on codebase/src/cpp/ieee1516e/src/jni/Runtime.cpp line number 209 // Before we create the JVM, we will check to see if one already exists or // not. If there is an existing one, we will just attach to it rather than // creating a separate one. jint result; jsize jvmCount = 0; result = JNI_GetCreatedJavaVMs( &jvm, 1, &jvmCount );

on line 209. Please help us solve this issue. Thank you