Using JNI with NetBeans C/C++ Pack

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
Comments:

ooh yeaah!
ouh yeaah!
a new screencast from roumen :)

Posted by Laurent M on září 03, 2007 at 10:24 dop. CEST #

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?

Posted by Ben Loud on září 04, 2007 at 09:09 dop. CEST #

Hi,
Can we change the c compiler now in netbeans?
Thanks

Posted by Sorin on září 15, 2007 at 02:28 dop. CEST #

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

Posted by Roumen on září 15, 2007 at 02:55 dop. CEST #

Post a Comment:
Comments are closed for this entry.
About

Roman Strobl

Search

Archives
« duben 2014
PoÚtStČtSoNe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today