Javah Help - "No classes specified on command line"

I am running Ubuntu Linux with Eclipse installed and I am trying to work with JNI for this I need to use javah, but it does not seem to work I recently installed Ubuntu and am not familiar with Linux / bash shells

for my eclipse project called myJNI, I have a DoJNI class containing my own method.

in terminal:

javah -classpath .;\home\thomas\Documents\LinuxProgramming\EclipseWorkspace\myJNI\bin\org\me\jni DoJNI

I get: No classes specified on command line

+3
source share
1 answer

Use slashes instead of backslashes, and a colon instead of a colon:

javah -classpath .:/home/thomas/Documents/LinuxProgramming/EclipseWorkspace/myJNI/bin/org/me/jni DoJNI

, , org/me/jni , bin, org.me.jni.DoJNI:

javah -classpath .:/home/thomas/Documents/LinuxProgramming/EclipseWorkspace/myJNI/bin org.me.jni.DoJNI
+6

Source: https://habr.com/ru/post/1774828/


All Articles