Question:
HELP!!! JNI Question using NEtbeans!?
Rudolfie
2010-02-24 03:27:46 UTC
I found this tutorial on Netbeans site < cause im using netbeans> on how to use JNI < which i have no clue about> and it said that i needed a gcc,make . how to get that and how to use it?
and when i set the environment variable to how can i find it in console in the final step where i need to create a header file?


the link is the following:
http://cnd.netbeans.org/docs/jni/nb6-linux/beginning-jni-linux.html
Three answers:
deonejuan
2010-02-24 04:17:37 UTC
JNI is a bridge to use C/c++ libraries. It makes your java code non-portable, but it allows you to use libraries instead of having to re-invent the wheel. I use it only to gain graphic capabilities for computer vision. Setting up the full use of Intel's OpenCV library is non-trivial, in fact it is a pain.



You will have to compile the C/c++ library and shared-library code on your machine before you can write the JNI wrappers. You need a good book on ANSI C. gcc is a compiler for the Linux world and Windows has their Mingw32 for open source offerings.



NetBeans is great for writing C code once you've got the compiler installed and ready to link.



good luck
2016-05-31 08:51:39 UTC
In my opinion, working with Matlab is much easier than working with C or C++, but of course it's only a tool. Matlab is ready for GUIs, and for lots of mathematical calculations. You have to spend some time learning that tool, though... It's not trivial, but working with C is much less trivial...
?
2010-02-24 03:39:58 UTC
gcc and make are binaries (or executable programs) use to compile C/C++ programs.



Follow this netbeans tutorial first:



http://netbeans.org/community/releases/68/cpp-setup-instructions.html



P.S. I think you're way over your head on this one.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...