Using JNI with NetBeans C/C++ Pack

Guest Author

I recorded a new screencast which shows how to use the Java Native Interface. You will
learn how to call native C code from a Java application.
The demo was created using NetBeans 5.5.1 and C/C++ Pack for NetBeans 5.5.1. Enjoy!

Click on the screenshot to play the screencast

Join the discussion

Comments ( 4 )
  • Laurent M Monday, September 3, 2007

    ooh yeaah!

    ouh yeaah!

    a new screencast from roumen :)

  • Ben Loud Tuesday, September 4, 2007

    The C++ pack is cool. But still, it would great to see first class support for JNI C++ projects. I'd love to just type "public native myMethod()" in a Java project and then have NetBeans automatically created the JNI headers and C function stubs in C++ project, add the JNI library and headers to the project, and make it easy for me to build and run them together. And if you want a challenge, it would be cool to be able to step through code in the Java debugger, and then step in to native method C++ code in the C++ debugger seamlessly!

    Yeah I'm dreaming, but it would be great for NetBeans 7... anything's possible right?

  • Sorin Saturday, September 15, 2007


    Can we change the c compiler now in netbeans?


  • Roumen Saturday, September 15, 2007

    Yes, I believe you can change the compiler binary in the options for C.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.