I've just finished creating a test plugin and I would like to compile it into a jar to add to my PhoneGap project. Can someone provide an example?
I tried running the commands at the bottom of this blog post (http://kgriff.posterous.com/building-a-phonegap-plugin-for-android)
javac -d . -classpath <path_to_your>/android.jar:<path_to_your>phonegap.jar com/yourpackage/ToastPlugin.java I updated the two classpath's as well as updated my Java file; however, when I run the command I receive a bunch of errors:
package android.os does not exist import android.os.Bundle;
Edit with solution:
I'm not sure if one of the answers led me down this path, I kind of think it did, but I just realized that the bin directory already contains all of the *.class files that get compiled the same as running javac, so to create the jar, I just had to run this command:
jar -cvf myplugin.jar com\path\plugin\*.class