(Tutorial) Beginning JNI with NetBeans C/C++ Pack 6.0, Part II, Linux
Tutorial : Beginning JNI with NetBeans C/C++ Pack 6.0, Part II, Linux
This tutorial takes you through the creation of a sample application that uses JavaTM Native Interface (JNI) code written in the C programming language. For the part of the application written in the JavaTM programming language, you will use NetBeans IDE 6.0; for the part written in the C programming language, you will use NetBeans C/C++ Pack 6.0.
You will start off by creating a simple Java project, adding a native method to it, and then implementing this method in C using NetBeans C/C++ Pack 6.0.
Expected duration: 30 minutes
Prerequisites
This tutorial assumes you have some basic knowledge of, or programming
experience with, the following technologies:
Software Required for Tutorial
Before you begin, you need to install the following software on your
computer:
-
J2SE Development Kit (JDK) 6.0 (download)
-
NetBeans IDE 6.0 (Download the All bundle and customize it to install the Base IDE, Java SE Pack, and C/C++ Pack) (download)
-
gcc, make
Notations Used in Tutorial
-
<JAVA_HOME> - the JDK installation directory
-
<PROJECTS_ROOT> - directory that contains the Java project you create
Tutorial Exercises
Exercise 0: Installing and Configuring the Tutorial Environment
Exercise 1: Setting Up the General Java Application Project
Exercise 2: Setting Up the C/C++ Dynamic Library Project
Exercise 3: Building and Running the Application...
Courtesy: Cnd.netbeans.org
- guru's blog
- Login or register to post comments
