simulatorFMIUrl = FileLocator.find(b, new Path("libraries/FMUSimulator.dll"), null);
} else if(env.os == OSType.LINUX) {
sharedFMILIBUrl = FileLocator.find(b, new Path("libraries/libfmilib_shared.so"), null);
- simulatorFMIUrl = FileLocator.find(b, new Path("libraries/FMUSimulator.so"), null);
+ simulatorFMIUrl = FileLocator.find(b, new Path("libraries/libFMUSimulator.so"), null);
}
libraries[0] = new File(FileLocator.toFileURL(sharedFMILIBUrl).getPath());
try {
String tmpPath = tempDir.getAbsolutePath();
- if(!tmpPath.endsWith("\\"))
- tmpPath = tmpPath + "\\";
+ if(!tmpPath.endsWith("\\") && !tmpPath.endsWith("/"))
+ tmpPath = tmpPath + "/";
id = loadFMUFile_(path, tmpPath);
getAllVariables();
} catch (UnsatisfiedLinkError err) {
throw new FMILException(UNSATISFIED_LINK, err);
} catch (Exception e) {
+ LOGGER.error(e.getMessage());
throw new FMILException(e.getMessage());
}
}