javah illegal package
837475Feb 19 2011 — edited Feb 20 2011Hi, I am reading JNI tutorial http://cnd.netbeans.org/docs/jni/beginning-jni-win.html and have some problems. I would be grateful for some help. Thanks in advance.
Here we go. I am trying to create native library header file.
So, I open my command prompt and went to the folder where javah is but when I write the code from the sample i get this error: illegal package name
This is what I write in the cmd prompt:
C:\Program Files\Java\jdk1.6.0._24\bin> javah -o JNIDemoJava.h -classpath .;C:\Documents and Settings\Joro\My Documents\NetBeansProjects\DemoJava\build\classes demojava.Main
I have read a lot about this errors and folks with the familiar problem but nothing help, so I would be glad to be given some ideas.