• 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: Eclipse classpath question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eclipse classpath question


  • Subject: Re: Eclipse classpath question
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Tue, 4 Mar 2008 17:31:41 -0400

That sounds really weird. XCode used to take care of it (somehow) if one would simply add the JNI to the classpath, and tell XCode to merge it into the application jar. Now, I can't imagine XCode being Java-smart enough to actually do what you describe because it detects that one of the added classpath items is a JNI file.

It does however explain why the JNI is not simply bundled with the Quaqua jar distribution...

Darn, this is becoming troublesome. I've been putting it off because I assumed it would be simple :)

Thanks for the info,
F

On Mar 04, 2008, at 13:18, Mike Schrag wrote:

Not without some magic (and this isn't an Eclipse thing, this is just a Java thing) ... As part of your startup, you have to read the JNI file out of the jar and write it to the filesystem and then load that library.

Oh well, I suppose I'll have to do it that way.

This is what Eclipse does, for instance, with SWT. I don't know of any way for System.loadLibrary to load a JNI lib out of a jar file directly.

ms

_______________________________________________ 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: 
 >Eclipse classpath question (From: Florijan Stamenkovic <email@hidden>)
 >Re: Eclipse classpath question (From: Mike Schrag <email@hidden>)
 >Re: Eclipse classpath question (From: Florijan Stamenkovic <email@hidden>)
 >Re: Eclipse classpath question (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Lifebeat
  • Next by Date: Re: Lifebeat
  • Previous by thread: Re: Eclipse classpath question
  • Next by thread: Lifebeat
  • Index(es):
    • Date
    • Thread