I also deal with this issue for a long time while working with the mentioned book about Android NDK.
Please note the following: The java class name is NOT written in { } , just write something like com.myproject.MyActivity
The -classpath parameter can accept multiple paths, separated by a semicolon.
In my case, these options worked:
Location:
${env_var:JAVA_HOME}\bin\javah.exe
Working Directory:
${workspace_loc:/myproject/bin}
Arguments:
-d ${workspace_loc:/myproject/jni} -classpath ${workspace_loc:/myproject/bin/classes};"C:\Eclipse\sdk\platforms\android-18\android.jar" com.myproject.MyActivity
(BTW: The correct Adroid.jar file is listed in the Eclipse project.)
source share