Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Generating JNI code automatically (using a tool)

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Generating JNI code automatically (using a tool)

    Hello

    i'm looking for a tool that can generate the needed JNI code using only header file in order to call native C/C++ functions from a library (.so file). i'm having hard time to find the documentation i need to understand the tools so i try to ask here.

    i'm using eclipse on linux.

    the popular tools are - SWIG, JNIWrapper, Gluegen, JNA, Bridj.

    i wish the tool could do the following:
    1. Generate JNI code that needed to call C/C++ code? (not another wrape like SWIG does)
    2. Generate conversion code in the JNIEXPORT-JNICALL methods so a structs inside structs will also will be converted automatically and not only the external struct. SWIG, for example is passing a pointer only to the external struct.
    3. Good performance. Does anywone ever checked those tools?
    4. Examples. if you have examples i'd love to receive.

    Thanks a lot in advance
    Tomer


  2. #2
    Junior Member
    Join Date
    Sep 2013
    Posts
    11
    My Mood
    Bored
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Generating JNI code automatically (using a tool)

    JNIGeneratorAppUI is a Graphical User Interface and you can run it from org.eclipse.swt.tools.
    Hope the following source can give you needed info - Generating the SWT JNI Code JNI defines a customary naming and line of work convention so the Java Virtual Machine (VM) will find and invoke your native strategies.

Similar Threads

  1. Add code tag tool to Quick Reply editor
    By GregBrannon in forum Forum Updates & Feedback
    Replies: 3
    Last Post: August 13th, 2013, 06:12 PM
  2. calling native c code from java using JNI
    By ashok_jeev in forum Java Native Interface
    Replies: 3
    Last Post: November 20th, 2012, 05:28 AM
  3. JNI Help please
    By papillonne88 in forum Java Native Interface
    Replies: 1
    Last Post: October 30th, 2011, 02:27 PM
  4. Start application automatically
    By niveditajain2002 in forum Java ME (Mobile Edition)
    Replies: 1
    Last Post: September 16th, 2011, 05:57 AM
  5. how to convert this into JNI code
    By Jhovarie in forum Java Native Interface
    Replies: 0
    Last Post: June 11th, 2011, 10:50 AM

Tags for this Thread