It would be better if detailed commands provided. Thanks!
I can use the method adopted by android am/pm program:
1. create Android.mk and java file
2. compile using mmm
3. put the generated jar to target /data/
4. run it:
# export CLASS_PATH=/data/MyTest.jar
# app_process /data com.android.test.MyTest
It work, but somewhat difficult. I think there must be an easier way using dx/dvz/dalvikvm.