You may be venturing into a problem - if you are trying to call a .dll from Java
you are moving out of the JRE which destroys Java's portability. Can you specify
exactly what kind of method you are calling? There is probably a Java method
layered over the native libraries that can achieve the same effect without
dipping into the native libraries...