* @exception IllegalActionException Not Thrown in this subclass.
*/
public Set getJVMHeaderFiles() throws IllegalActionException {
String javaHome = StringUtilities.getProperty("java.home");
ExecuteCommands executeCommands = getCodeGenerator()
.getExecuteCommands();
if (executeCommands == null) {
executeCommands = new StreamExec();
}
if (!_printedJVMWarning) {
// We only print this once.
_printedJVMWarning = true;
executeCommands.stdout(_eol + _eol
+ "WARNING: This model uses an actor that "
+ "links with the jvm library." + _eol
+ " To properly run the executable, you must have jvm.dll"
+ " in your path." + _eol
+ " If you do not, then when you run the executable, "
+ "it will immediately exit" + _eol + " with no message!"
+ _eol + " For example, place " + javaHome
+ "\\bin\\client" + _eol
+ " in your path. If you are running Vergil from the "
+ "command line as " + _eol + " $PTII/bin/ptinvoke, "
+ "then this has been handled for you." + _eol
+ " If you are running via Eclipse, then you must update "
+ "your path by hand." + _eol + _eol + _eol);
}
String jreBinClientPath = javaHome + File.separator + "bin"
+ File.separator + "client";
executeCommands.stdout(_eol + _eol
+ "CCodeGeneratorHelper: appended to path "
+ jreBinClientPath);
executeCommands.appendToPath(jreBinClientPath);
javaHome = javaHome.replace('\\', '/');
if (javaHome.endsWith("/jre")) {
javaHome = javaHome.substring(0, javaHome.length() - 4);
}