I\'m trying to build an Android project that has some dependencies. The jar files are in the lib/ directory. I can build the project by adding those jar file to my classpa
At compiling do this:
javac -encoding ascii -target 1.5 -d bin/classes \
-bootclasspath $SDKDIR/android.jar src/some/project/* -classpath=libs/*.jar
And, when you are generating the bytecode for Dalvik:
dx --dex --output=bin/classes.dex bin/classes libs/*.jar
Also, when you are packaging the APK file:
apkbuilder bin/something.apk -z bin/projectname.ap_ \
-f bin/classes.dex -rf src -rj libs
I'm assuming you are using Linux... on Windows will be almost the same.