Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javah illegal package

837475Feb 19 2011 — edited Feb 20 2011
Hi, 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2011
Added on Feb 19 2011
7 comments
962 views