TamiL
TamiL

Reputation: 2896

JNI programming : error - Class jni not found

An error occur while running this code:

$ javac HelloWorld.java
$ javah jni HelloWorld
error: cannot access jni
class file for jni not found
javadoc: error - Class jni not found.
2 errors

how could I overcome it? please give me a solution.. thanks.

Upvotes: 1

Views: 289

Answers (1)

Michael
Michael

Reputation: 58507

Use javah -jni instead of javah jni.

Upvotes: 1

Related Questions