Java Program : Error in netbean but not in textpad as console program
<pre><code>class Test1
{
    static
    {
        System.out.println("Dll is going to load.");
        System.loadLibrary("OMGICardDll");
        System.out.println("Loaded");
    }

    public static void main(String ar[])
    {
        int s=0;
        Test1 t=new Test1();
        s=t.Createcard();

        if(s!=0)
            System.out.println("Create Card Failed");
        else
            System.out.println("Create Card Success");

        System.out.println(t.ReadName());
        System.out.println(t.ReadCode());
        System.out.println(t.ReadRFU());

        s=t.UpdateName("LIPUN");
        if(s!=0)
            System.out.println("Update Name Fail");
        else
            System.out.println("Update Name Success");

        s=t.UpdateCode("Java");
        if(s!=0)
            System.out.println("Update CODE Fail");
        else
            System.out.println("Update CODE Success");

        s=t.UpdateRFU("NetBean");
        if(s!=0)
            System.out.println("Update RFUs Fail");
        else
            System.out.println("Update RFUs Success");

        System.out.println(t.ReadName());
        System.out.println(t.ReadCode());
        System.out.println(t.ReadRFU());
    }

    public native int Createcard();
    public native int UpdateName(String Name);
    public native int UpdateCode(String Code);
    public native int UpdateRFU(String RFU);

    public native String ReadName();
    public native String ReadCode();
    public native String ReadRFU();
}
</code></pre>

<p>The above code is to read a smart card through a dll in Java. If I plugin the card and run the code in a textpad as a console program then there is no error and program runs successfully, but if I integrate the same code in a netbean project it gives the error below: </p>

<pre><code>Dll is going to load.
Loaded
Exception in thread "main" java.lang.UnsatisfiedLinkError: smartcarddemo.Test1.Createcard()I
    at smartcarddemo.Test1.Createcard(Native Method)
    at smartcarddemo.Test1.main(Test1.java:18)
Java Result: 1
</code></pre>
