on 05-26-2006 8:36 AM
Hi,
I have to use a system dll(kernel32.dll) in my java program.can pls tell me the way to use it.can u pls send me the sample code if any.
Regards,
kiran.
Hi
You can use System.loadLibrary() and put the DLL in the path
for ex : you have test.dll
add this to the classpath and call System.loadLibrary("test") ;
alternatively you can also use
System.load("c:/path/to/dll/test.dll");
Hope this helps ,please mark points for helpful answers
regards
rajesh kr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You have to use JNI and java to do any native method calls in java .
Here are some sample tutorials
http://bdn.borland.com/article/0,1410,20679,00.html
http://www.inonit.com/cygwin/jni/helloWorld/load.html
http://www.kbalertz.com/kb_222092.aspx
hope this helps ,please mark helpful answers
regards
rajesh kr
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.