This discussion is archived
2 Replies Latest reply: Mar 17, 2008 1:56 AM by 807591 RSS

want to generate header file using JNI but says Class Not Found

807591 Newbie
Currently Being Moderated

I have a simpel calss file and want to generate .h file for it, but when i use cmd

javah - jni HelloWorld

it says

error: cannot access HelloWorld
file HelloWorld.class not found
javadoc: error - Class HelloWorld not found.
Error: No classes were specified on the command line. Try -help.

The following is class file under D:\Hello\
 class HelloWorld {

        public native void displayHelloWorld();

        static {

        public static void main(String[] args) {
            System.out.println("Class running");
            new HelloWorld().displayHelloWorld();
I have path set correctly to the installed java version

Any idea why is this happening??