Search code examples
androidheaderjava-native-interfacejavah

Javah missing android.os.Parcelable


When I'm trying to create a headerfile with javah I get an error that he can't find the Parcelable class.

Before I created the header with:

From %PROJECTDIR%/bin/classes/

javah -classpath com.my.project

But now I added the Parcelable to the native calls I include the android.jar to the commandline call: From %PROJECTDIR%/bin/classes/

javah -classpath :~/shared/android.jar:~/shared/MyProject/bin/classes com.my.project

I will get this error:

Error: Class android.os.Parcelable could not be found.

What am I doing wrong?


Solution

  • Found the problem... I had one colon to many.

    javah -classpath ~/shared/android.jar:. com.my.project