• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Native libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



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

References: 
 >Native libraries (From: Frédéric JECKER <email@hidden>)
 >Re: Native libraries (From: Fabrice Pipart <email@hidden>)

  • Prev by Date: Re: Is Xcode Tools 2.4.1 missing the WebObjects adaptor source code?
  • Next by Date: Re: Modeling optional one-to-one relationships correctly
  • Previous by thread: Re: Native libraries
  • Next by thread: Re: Native libraries
  • Index(es):
    • Date
    • Thread