If the DLL is in the CLASSPATH then you don't need to specify a PATH. : JNI « Development « Java Tutorial






Runtime.getRuntime().load("d:/directoryX/subDirY/MyDll.dll");
6.52.JNI
6.52.1.Load a DLL
6.52.2.If the DLL is in the CLASSPATH then you don't need to specify a PATH.
6.52.3.Specify through the JVM command line the location where to find the JNI DLL to be loaded