I'm a newbie Android developer and wish to know how to use dx to generate the dex file/s for a java program that references external package libraries. Ultimately, I'm trying to run this generated dex file/s using dalvikvm at command line within an Android device.
Here is an example of my problem:
If I have a java HelloWorld.class which references a package moon.jar (e.g. I instantiate an object from the package within the main method in HelloWorld.class), what should be the full and exact dx command to issue to generate the dex file/s?
With the dex file/s generated, how should I package them into a jar?
With the generated jar, what should be the full and exact dalvikvm command to run the jar file in command line in the Android device?
Hope to hear from the dx and dalvikvm experts out there, thanks!!