String root = FileLocator.getBundleFile(bundle).getAbsolutePath();\r
libraries[0] = new File(root, "libraries/zlibwapi.dll");\r
libraries[1] = new File(root, "libraries/miniunz.dll");\r
-// libraries[2] = new File(root, "libraries/FMUSim.dll");\r
libraries[2] = new File(root, "libraries/FMUSimulator.dll");\r
}\r
catch (Exception e) {\r
}\r
\r
for(File library : libraries) {\r
- if(!library.isFile()) {\r
+ if(library == null) {\r
+ System.err.println("FMU library not loaded. FMU simulation not working.");\r
+ continue;\r
+ } else if(!library.isFile()) {\r
System.err.println(library.getAbsolutePath() + " not found");\r
- } else if(library != null) {\r
+ } else {\r
try {\r
System.load(library.getAbsolutePath());\r
} catch (Throwable t) {\r