是否有可能写在Android上运行的普通Java程序?

是否有可能写在Android上运行的普通Java程序?

问题描述:

我看到的教程,告诉你如何使活动和所有真正的Andr​​oid应用程序,但我真正想要做的是使具有公共无效静态主要的Java类(字符串PARAMS []){系统。通过out.println(的Hello World);},并用Android机上的Java的HelloWorld运行它。这可能吗?

I see tutorials that show you how to make a real android application with activities and all that, but all I really want to do is make a java class that has a public void static main(String params[]) { System.out.println("Hello World");} and run it with java HelloWorld on an android machine. Is that possible?

有Android市场上有很大的应用程序称为终端IDE 一>,其中包括一个巨大的shell环境,VIM /纳米和java / javac的所有编译在Android上本地运行。有了这个,你可以运行正常的Java code。

There's a great app on the Android market called Terminal IDE that includes a great shell environment, vim/nano and java/javac all compiled to run natively on Android. With this you can run "normal" Java code.