This is a workaround for the lack of support for native library loading http://www.jetbrains.net/jira/browse/IDEA-928
My current apporach is to load the dll files using part of the resource mechanism. Let say I have these dlls:
in a certain module/package of my project.
In the same folder than the dlls there is the class that loads them, let say DllLoader.java. This class must include some code like this:
public static final String fullDllName;
URL url = DllLoader.class.getResource("");
String path = url.getFile();
File file = new File(path, dllName);
if (System.getProperty("os.arch").indexOf("64") >= 0) fullDllName= file + "64.dll";
else fullDllName= file.toString();
Everything works fine but one thing: I must copy the "resouce" dlls to the output folder by hand. Even I have added "*.dll" to the resources types in Setting>Compiler dialog, IDEA (96.1190) don't copies these files to the output folder. Some sort of renaming extension mechanism.would be nedded for automaic deployement of a module with native dependencies.