which package is use for call jni

i call jni from java bean.so which package is to be usedis there anyjava.jni.*; --> ?
[123 byte] By [vivekebox1] at [2007-9-26 4:02:20]
# 1
There isn't any package.You create a class with native methods. That class lives in a package. That is the class that you use in your java code.
jschell at 2007-6-29 12:58:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

JNI is used to extend the functionality of the Java Virtual Machine through native code. Packages are used as a way of physically separating Java code in a logical fashion.

As the native code is not part of your Java code, it has no package, in fact any libraries (be it win32 dll's or another breed) are unlikely to be on your classpath at all. They have to be in your PATH (win32) or LD_LIBRARY_PATH for linux/unix. Have a read of the JNI tutorial on here, it is a great way to get you started.

andyba at 2007-6-29 12:58:54 > top of Java-index,Java HotSpot Virtual Machine,Specifications...