Hi, I am working with some very simple java code (with JDK1.3), but for some reason the javah command is not working and presenting the error:

Philip Yu

Make sure you are under the right directory. If your Java source files are in a package, provide the full package path. Here is an example, say you have a Java project that has a full package path like com.mycom.test, and a source file myjava.java (present in d:jprojects est directory):

mkdir D:jprojects	estclasses
javac -d D:jprojects	estclasses myjava.java
cd D:jprojects	estclasses
javah -jni com.mycom.test.myjava
You will get a header file com_mycom_test_myjava.h.

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact