loading DLL should be in static block since it requires to be loaded before creation of any object as main method. DLL shold be in current directory where class file is located.
static {
System.loadLibrary("DLL Name");
}
static {
System.loadLibrary("DLL Name");
}