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

Windows IEEE1516e C++ examples are unable to load JVM.dll out of the box #254

Closed michaelrfraser closed 6 years ago

michaelrfraser commented 6 years ago

Problem Description

When attempting to run the windows IEEE1516e example, I receive a system error dialog that says it is unable to locate JVM.dll.

Platform

Windows 10, 64-bit Visual Studio 14 (I have created my own compiling batch file win64-vc14.bat).

michaelrfraser commented 6 years ago

Problem looks to be due to a pathing change in the JRE. portico\codebase\src\cpp\ieee1516e\src\jni\Runtime.cpp expects jvm.dll to reside at jre\lib\i386\client (for 32-bit) or jre\lib\amd64\server (for 64-bit).

However, in Java 8 b144 jvm.dll actually lives at jre\bin\client (for 32-bit) or jre\bin\server (for 64-bit).

michaelrfraser commented 6 years ago

Submitted PR to https://github.com/openlvc/portico/pull/255

michaelrfraser commented 6 years ago

Merged into master