Add new comment

Can't execute jni

I have jar file that work depends on my dynamic link library, and it works fine when I execute the jar file which is placed in the same folder with my dll file by cmd in windows os. But when I convert it in to exe with jar2exe tool and place the exe file and dll file within the same folder and execute it wont work. I have coded in my java file..... System.load(System.getProperty("user.dir")+"\\mylib.dll"); .... and I have also changed "user.dir" by "application.home" and tried it won't work too.

So please help me how do I get that work?