Skip to Main Content

Java APIs

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!

javadoc: error Illegal package name: JNI

843810May 24 2007 — edited May 29 2007
Hi,

After writting the Java code using native method, Like

package jni;
public class jniFile {
static{
System.loadLibrary("jniFile");
}

public jniFile() {
System.out.println("Inside constructor ");
}

private native void printMessage(String msg);
public static void main(String[] args) {
jniFile m= new jniFile();
m.printMessage("String from java");
}
}
I tried to create the header file using javah -jni jniFile.
i got "javadoc: error - Illegal package name: "D:\JNI\build\classes\jni" error.
Can any one help me.
Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2007
Added on May 24 2007
5 comments
2,348 views