A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Difference b/w native method and loadLibrary function
Joined: Oct 11, 2005
Oct 06, 2006 14:58:00
we can call a dll using loadLibrary of Runtime class.
we can also access the dll using native method. what is the difference ?
which method is best
Joined: Dec 31, 2004
Oct 06, 2006 16:41:00
Actually your native method must be defined in the DLL file, that is why you must load the library for its invocation to suceed.
That is done through JNI you can read about JNI in the Sun JDK Specification or follow the link
I agree. Here's the link:
subject: Difference b/w native method and loadLibrary function
jni in linux
REPOST: can native method be called from main, without comp., RT errors ?
jar to native dll
DLL with Parameters to be Called
A JNI question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014