• 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: Finding jnilib on Xcode (that's linked to dylib file)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding jnilib on Xcode (that's linked to dylib file)


  • Subject: Re: Finding jnilib on Xcode (that's linked to dylib file)
  • From: "Jack Nutting" <email@hidden>
  • Date: Fri, 6 Oct 2006 09:28:42 +0200

On 10/5/06, Inge Yuwono <email@hidden> wrote:
What setting do I need to do so that the application could find the jnilib?

I encountered similar problems recently. First, are you passing the full path to your jnilib to System.loadLibrary()? If so, you shoudn't; you just just pass the name of the lib WITHOUT the .jnilib extension, and it should be able to find it in the java path (e.g. the current directory or /Library/Java/Extensions). However, this didn't actually work for me. What I ended up doing is passing the full path of my jnilib, INCLUDING the .jnilib extension, to System.load() instead of loadLibrary(), and that works fine.

PS:  This is probably somewhat off-topic for the xcode-users list.
Perhaps macosx-dev would have been more appropriate?

--
// jack
// http://www.nuthole.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Finding jnilib on Xcode (that's linked to dylib file) (From: "Inge Yuwono" <email@hidden>)

  • Prev by Date: Bug in g++?
  • Next by Date: Re: Bug in g++?
  • Previous by thread: Finding jnilib on Xcode (that's linked to dylib file)
  • Next by thread: Re: Finding jnilib on Xcode (that's linked to dylib file)
  • Index(es):
    • Date
    • Thread