Open timpokorny opened 9 years ago
Verified while trying to test Portico WAN things. JAVA_HOME
needs to be set. It doesn't matter what to, it just needs to be set to something.
Currently hamstrung by the fact that the federates themselves don't seem to work happily on Mac OS X.
Summary
Portico C++ federates will crash if
JAVA_HOME
environment variable is not set.In the HLA13 class Runtime.cpp#286 there is the call:
string jrelocation( getenv("JAVA_HOME") );
If
JAVA_HOME
is not set, this will return null and then there will be a crash. The same code is present in the 1516e interface: Runtime.cpp#240Throughout these classes there are many other uses of
getenv
that do not check for null and should also be remediated.Environment and Logs
Reproduction Steps