• 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, WO, and JNI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eclipse, WO, and JNI


  • Subject: Re: Eclipse, WO, and JNI
  • From: Timo Hoepfner <email@hidden>
  • Date: Fri, 8 Oct 2010 23:41:06 +0200

Hi Tim,

some random notes:

You can specify a native library location for jars in eclipse in the build path settings.
For deployment either put them in /Library/Java/Extensions or explicitly specify the location (I don't have example code for that at hand).
You can generate the headers with ant's javah task, but I remember running in some problem with that at some point, but I don't remember what it was... I ended up generating via CLI.
You should really take a look at using JNA (https://jna.dev.java.net/), this can replace much of the boilerplate code and the generated headers!
When you're interfacing with ObjC libraries, take a look at Rococoa (http://code.google.com/p/rococoa/).
There's also some tool that auto-generates JNA/Rococoa code from C headers called JNAerator (http://code.google.com/p/jnaerator/). It had some problems when I looked at it, but this is quite a while ago.

HTH,

Timo




Am 08.10.2010 um 22:15 schrieb Tim Worman:

> I'm looking to do some work on a WO project with JNI calls that was built in XCode and move it to Eclipse. I guess workflow advice is the most important thing - for mixing WO with JNI to call native c libraries. Since this whole subject is new to me in general I'm interested in advice on:
>
> - Eclipse project structure
> - where you put your c libraries so that your project can discover them
> - workflow for generating c headers, is it inside eclipse too
> - can it all just be built and run as a WO app
>
> Anyone? Bueller?
>
> Tim Worman
> UCLA GSE&IS
>
>
>
> _______________________________________________
> 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

 _______________________________________________
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

  • Follow-Ups:
    • Re: Eclipse, WO, and JNI
      • From: Tim Worman <email@hidden>
References: 
 >Eclipse, WO, and JNI (From: Tim Worman <email@hidden>)

  • Prev by Date: Re: [OT] Restoring a FrontBase DB
  • Next by Date: WOnder install fails
  • Previous by thread: Eclipse, WO, and JNI
  • Next by thread: Re: Eclipse, WO, and JNI
  • Index(es):
    • Date
    • Thread