As already mentioned, Java is not officially supported. But if you absolutely must run Java, you can jailbreak your phone and run Java this way. I'm not going to provide jailbreaking instructions on your phone, it's easy enough to translate it.
Cydia, one of the applications / installers that you install when jailbreaking, has a Java installer that you can use. It uses JamVM, a small, lightweight JVM.
Through Cydia, you can also install some demo applications, including a sample HelloWorld console application. In addition, I heard that people got Jetty to work on the iPhone, but they didn’t try it.
Java GUI development on iPhone is currently a work in progress. To learn more, there is an iPhone-Java mailing list you can subscribe to. The Java level makes its own calls at the Objective-C level and is not very Java oriented. You need to understand how to create code in Objective-C to create a graphical interface.
Johann Zacharee Oct 27 '08 at 18:38 2008-10-27 18:38
source share