i have tryied to native method using jni
like this
public static native boolean Connect_Net(String ipAdd,int port);
in class with and without this name CZKEM
JNI isn't designed to allow you to call any DLL -- it is used to get you to C/C++, which in turn, can be used to get to any DLL.
Basically, after you declare your native methods.... (1) use the javah tool to generate the C/C++ include files, which (2) you use to write your own C/C++ stubs to load and call the external DLL. (3) This newly created C file needs to be compiled into a DLL, which (4) can be loaded by your java class using the load() methods.
In other words, you need to write a C/C++ layer, which conforms to the JNI specification, that acts like a bridge between Java and your external DLL.
Henry