Swing Clarity Released The Anti-Jobs: iPhone vs. jPhone
May 11

JNA: A simpler JNI

Tech Add comments

JNI is often scoffed at for being insanely difficult.

JNA aims to make it easier for you to access native code, and I heard about it from Romain (they used it in their Swing makeover talk to do cool windows).

I have heard of a mythical group at Sun who created a simple way to load a DLL/SO and allow you to go right after it. Some at Sun didn’t like the idea as it would be so easy, that some users may go native too often.

I need to look closer at it, but in theory it looks really good.

3 Responses to “JNA: A simpler JNI”

  1. Timothy Wall Says:

    I don’t know of any mythical group at Sun, but the JNA project was posted last fall with some long dormant code which was a tweak of a JavaONE 1999 presentation. It doesn’t look to me that Sun “suppressed” something more substantial over all that time.

    Since February the project has been improved to actually be usable in real-world scenarios (see the rabbit hole link for some examples, including the shaped/transparent windows, which are also included in the JNA examples).

  2. Kris Says:

    Java definitely needs something along the lines of PInvoke in .NET to make it simple to access native APIs. But obviously such code should be subject to security restrictions and should not be easily invoked. I bet it leads lot of rich applications in Java with media capabilities and ability to build a lot of system tools.

  3. replicahandbags Says:

    not familiar with java stuff,still learning

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'