Re: Native libraries
Re: Native libraries
- Subject: Re: Native libraries
- From: Frédéric JECKER <email@hidden>
- Date: Thu, 11 Jan 2007 16:32:01 +0100
Fabrice,
Thanks for your answer it helped me avoiding to struggle with paths.
Once the native library was loaded I had another problem which was
caused by the dll itself:
I generated it from an example project where the java class holding the
native methods wasn't in a package
as the final class. As the package name is included in the native
method name generated in the h file
by javah it was normal that the native method couldn't be loaded.
Fred
Fabrice Pipart a écrit :
Hi !
On Jan 11, 2007, at 9:41 AM, Frédéric JECKER wrote:
Moin List,
Does anyone already achived to use native libraries in a webobject
project ?
Sure !
Personally I have this in one of my classes :
static {
// Ensure native JNI library is loaded
System.load(PATH_LIBRARIES_AND_APIS + "lib.jnilib");
}
native static boolean nativeMethod(String
arg, String other);
I've tested a lot of solutions and I
keep getting java.lang.UnsatifiedLinkException telling me that my native
library cannot be found.
When using the same objects and native libraries in a command line
project it works fine !
Is there a specific directory in which I should place my dlls ?
Thanks
Fred
PPlease
consider the environment - do you really need to print this email ?
_______________________________________________
Do not post admin requests to the list.
They will be ignored.
Help/Unsubscribe/Update your Subscription:
www.easyshadow.com
International
Corporate Consulting
Palais de la Scala
1 avenue Henri Dunant
Suite 1155
MC - 98000 Monaco
Skype: fabrice.pipart
Tel. +377 97 98 21
04 (direct)
Fax. +377 97 70 88 07
--
________________________________________
Frédéric
JECKER
GIP Sym@ris
PPlease
consider the environment - do you really need to print this email ?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden