• 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: JNI and bundles...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JNI and bundles...


  • Subject: Re: JNI and bundles...
  • From: Andrea -XFox- Govoni <email@hidden>
  • Date: Fri, 18 Nov 2005 11:44:11 +0100

Chas Spillar ha scritto:

> I have a application with a jnilib which works fine if I put this library in
> the /Library/Java/Extensions folder or run the application through XCode.
> However, I would like to put it in the application bundle in
> Contents/Resources/Java.
>
> Unfortunately, I am unable to get it to work in this location.  I have set
> NSNeedsJava and indicated the Java root as Contents/Resources/Java and
> listed the library in the info.plist.  With this setup, it works in XCode
> but does not work when run independently (unless I move the library to
> /Library/Java/Extensions).

Assuming you are developing a Java application, can you have your
application print out the value of Java system property java.library.path?
IIRC, the path to the folder that contains the jnilib should be in
java.library.path's value.

To print out the value of java.library.path you could:
System.out.println(System.getProperties().getProperty("java.library.path"));

--
Andrea "XFox" Govoni

ICQ UIN: 43488185
AIM/iChat: email@hidden
Yahoo! ID: xfox82
Skype Name: draykan

PGP
KeyID: 0x212E69C1
Fingerprint: FBE1 CA7D 34BE 4A53 9639  5C36 B7A0 605F 212E 69C1
 _______________________________________________
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: 
 >JNI and bundles... (From: Chas Spillar <email@hidden>)

  • Prev by Date: Xcode 2.2 Interface Builder crashes constantly?
  • Next by Date: Re: Xcode2.2 and gcc-3.3 "multiple compilations" error
  • Previous by thread: JNI and bundles...
  • Next by thread: debugging exceptions!
  • Index(es):
    • Date
    • Thread