Click here to Skip to main content
15,880,651 members
Articles / Programming Languages / Visual C++ 9.0

Debugging a JNI Application using Netbeans and Visual Studio

Rate me:
Please Sign up or sign in to vote.
4.69/5 (13 votes)
14 May 2012CPOL8 min read 102.5K   1.2K   17  
This article shows how to create a Java Swing GUI application in Netbeans and interface it with JNI DLL.
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nativegui;

/**
 *
 * @author tatauser
 */
public class NativeAdd {
    native public static double add(double n1, double n2);
    static
    {
        System.loadLibrary( "NativeAdd" );
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Product Manager Mahindra & Mahindra
India India
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

Comments and Discussions