if(entry != null) {\r
URL fileURL = FileLocator.toFileURL(entry);\r
File root = new File( URLDecoder.decode(fileURL.getPath(), "UTF-8") );\r
- File f = new File(root, "OpenModelica1.8.0");\r
+ File f = new File(root, "OpenModelica1.7.0");\r
return f;\r
}\r
}\r
case SUN:\r
return new File("/usr/bin/omc");\r
case WINDOWS:\r
- return new File("c:/OpenModelica1.8.0");\r
+ return new File("c:/OpenModelica1.7.0");\r
default:\r
throw new UnsatisfiedLinkError("Unsupported operating system: " + os);\r
}\r
Map<String, String> env = processBuilder.environment();\r
\r
env.put("OPENMODELICAHOME", openModelicaHome.getAbsolutePath());\r
- env.put("OPENMODELICALIBRARY", openModelicaHome.getAbsolutePath() + "\\lib\\omlibrary\\msl31");\r
+ env.put("OPENMODELICALIBRARY", openModelicaHome.getAbsolutePath() + "\\lib\\omlibrary");\r
env.put("OMPATH", openModelicaHome.getAbsolutePath() + "\\bin");\r
- env.put("Path", env.get("Path") + System.getProperty("path.separator") + openModelicaHome.getAbsolutePath() + "\\MinGW\\lib");\r
+ env.put("MINGW", openModelicaHome.getAbsolutePath() + "\\MinGW");\r
+ env.put("PATH", env.get("PATH") + System.getProperty("path.separator") + openModelicaHome.getAbsolutePath() + "\\MinGW\\lib");\r
\r
// Start the building process\r
Process process = processBuilder.start();\r
env.put("OPENMODELICAHOME", openModelicaHome.getAbsolutePath());\r
env.put("OPENMODELICALIBRARY", openModelicaHome.getAbsolutePath() + "\\lib\\omlibrary\\msl31");\r
env.put("OMPATH", openModelicaHome.getAbsolutePath() + "\\bin");\r
- env.put("Path", env.get("Path") + System.getProperty("path.separator") + openModelicaHome.getAbsolutePath() + "\\bin"\r
+ env.put("MINGW", openModelicaHome.getAbsolutePath() + "\\MinGW");\r
+ env.put("PATH", env.get("PATH") + System.getProperty("path.separator") + openModelicaHome.getAbsolutePath() + "\\bin"\r
+ System.getProperty("path.separator") + openModelicaHome.getAbsolutePath() + "\\MinGW\\lib");\r
\r
// Simulate model\r