Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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
subject: Difference b/w native method and loadLibrary function
REPOST: can native method be called from main, without comp., RT errors ?
A JNI question
jar to native dll
DLL with Parameters to be Called
jni in linux
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013