Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
All,
I was following this discussion and saw the solution of checking the environment variable PRO_MACHINE_TYPE, which definitelylooks like the best place to get it from. But my question to the group is - from JLink, what's the best way of getting an OS environment variable?
The System.getProperty() method only gets JVM system properties.The only way I could think of was to set the config.pro option for the JLINK_JAVA_COMMAND with a "-Dpro_machine_type=%PROE_MACHINE_TYPE%" option to pass the value (if that would even work). Is there a better way?
thanks,
Gary Hoffman
Solar Turbines Inc