iPhone doesn’t natively support Java / J2ME.イメージ、ネイティブではサポートされないのJava / J2MEのです。 However as a J2ME developer there are two good ways to develop iPhone applications using Java / J2ME.しかしJ2MEの開発者として良い方法を開発するには2つのイメージを使用してアプリケーションのJava / J2MEのです。 Read below for details and also to know how you can upload, compile and run Java applications on iPhone.下記をご覧くださいを読むとすることができます。アップロードする方法を知っても、 Javaアプリケーションをコンパイルして実行するイメージです。


alcheMo-for-iPhone - Automated J2ME to iPhone porting solution alchemo -を-イメージ-イメージの移植を自動化J 2MEの解決策

alcheMo for iPhone contains translator to convert J2ME application source code to equivalent C++ source code for iPhone. alchemoのイメージに変換するトランスレータが含まれJ2MEのアプリケーションのソースコードを同等のC + +のソースコードをイメージします。

No manual adjustments to the translated source code is required.翻訳のマニュアルを調整するソースコードが必要です。 Compiled using the standard Xcode toolchain and linked with alcheMo’s optimized run-time library, a native iPhone application is produced.コンパイルを使用して、標準のXcodeのtoolchainと連動alchemoランタイムライブラリの最適化、アプリケーションのネイティブイメージが現れます。

alcheMo for iPhone is capable of converting J2ME applications utilizing an extensive subset of Java ME CLDC 1.1 and MIDP 2.0 (including touch screen support) and supports several JSR extension APIs including the JSR-256 mobile sensor API. alchemoのイメージは、変換する能力を備えJ2MEアプリケーションのJavaのサブセットを活用し、大規模なメインcldc 1.1およびMIDP 2.0の(タッチスクリーンのサポートを含む)とのAPIをサポートし、いくつかの拡張子を含むれたJSRは、 JSR - 256携帯電話センサーのAPIです。 This automatic translation process is instantaneous, repeatable and doesn’t require iPhone specific experience.このプロセスは瞬時に自動翻訳、再現性および特定の経験をイメージする必要はありません。

Garbage collection and automatic memory management is one of the strengths of the J2ME environment.ごみ収集および自動メモリ管理は、 1つは、 J2ME環境の強みをします。 Unlike on Macintosh OS X, Objective C on iPhone does not support garbage collection.をMacintosh OS Xとは異なり、客観的Cをイメージガベージコレクションをサポートしていません。 By incorporating an advanced garbage collector, alcheMo eliminates the need for manual memory management.に組み込むことによって、高度なガーベジコレクタ、 alchemoマニュアルメモリ管理の必要性を排除します。 Whole classes of common programming errors such as dangling pointers are thus prevented.全体のクラスの共通のプログラミングエラーなどは、このように宙ぶらりんのポインタを阻止します。

The initial version of alcheMo for iPhone is optimized for mobile games. alchemoの初期のバージョンのモバイルゲームのイメージに最適化されています。

The bad news is that their beta program has closed on April 24th, while they are preparing for commercial release.悪いニュースは、彼らのベータ版のプログラムは4月24日に閉鎖し、彼らは商業リリースの準備をします。 alcheMo for iPhone has backing from Sun Microsystem.イメージは、太陽からの支持をalchemoマイクロです。

BTW: During Java One 2008, Sun officials repeatedly mentioned that they successfully ran Java on iPhone but are thwarted only by Apple’s licensing restrictions in publicly announcing it.ところで:中ジャワの1つの2008年、太陽の職員に繰り返し言及してイメージが正常に実行ジャワを挫折させられただけで、アップル社のライセンスの制限を公然と発表してください。 alcheMo circumvents Apple’s licensing restrictions with their language translator.アップル社のライセンスの制限alchemo発生彼らの言語に翻訳します。

Using Java on Unlocked & Jailbraked iPhone withイメージを使用してJavaの上にロックが解除さ& jailbraked Installerインストーラ

Note: The legality of the procedure below is dubious.注:以下の手順で合法性が疑わしい。 IANAL. ianalです。

First you need to unlock and jailbrake you iPhone.最初のロックを解除する必要があります。 jailbrakeをイメージしています。 You can use the使用することができます windows user interface for ZiPhone Windowsユーザーインターフェイスをziphone to jailbreak, unlock and activate any verion of iPhone.を脱獄、任意のverionのイメージのロックを解除し、アクティブ化します。

Then you need to have the installer app on iPhone.入力しておく必要がありますアプリケーション上でのインストーラのイメージです。 Installer.app is a UIKit based package manager for the iPhone. installer.appは、 uikitは、イメージベースのパッケージマネージャです。 It works by downloading packages over WiFi (wireless networking) or EDGE.それ以上の作品のパッケージをダウンロードしWIFI使用(ワイヤレスネットワーク) 、またはエッジです。 It supports installing, updating and uninstalling applications from multiple sources.インストールをサポートし、複数のソースからのアプリケーションのアップデートとアンインストールします。

winpwn can simplify the above steps for you.上記の手順を簡略化することです。

Now go to Installer and install Mobile Terminal and Cydia Installer.今すぐインストールするインストーラおよび携帯端末に行くとcydiaインストーラです。 Restart iPhone.イメージを再起動します。

Run Cydia Installer and go to Java section and select iPhone/Java which will install the virtual machine, libraries etc. Then install Jikes (java compiler). cydiaインストーラを実行して、 Javaのセクションを選択しイメージ/ Javaの仮想マシンにインストールして、ライブラリをインストールする等のjikes ( Javaコンパイラ)です。 Now restart iPhone again.今すぐ再起動イメージを再度します。

That’s it, you are done.それはそれは、設定は完了です。

How to load, compile & run Java applications on iPhoneをロードする方法を、 Javaアプリケーションをコンパイル&実行するイメージ

First install Java on iPhone following instructions in the section above before reading this.第一次の手順でインストールイメージジャワを読む前に、この上のセクションです。

You can upload Java files to iPhone using javaファイルをアップロードすることができますイメージを使用して iPhone Browserイメージブラウザ .です。
Run Terminal (installed above) and use java (jikes) compiler to compiler your program.実行ターミナル(インストール上)と使用すると、 Java ( jikes )コンパイラのコンパイラをしてプログラムです。 For example:例えば:
jikes -cp /usr/lib/rt.jar MyFirstJavaProgramForIPhone.java jikes - cpは/ usr / lib / rt.jar myfirstjavaprogramforiphone.java

You can run the class file as usual:クラスファイルを実行することができますいつもどおり:
java MyFirstJavaProgramForIPhone ジャワmyfirstjavaprogramforiphone

Java on iPhone - Concluding thoughtsジャワをイメージ-考えを締結

The second method (using jailbraked iPhone) suffers from three major problems. 2番目の方法( jailbrakedイメージを使用して)の被害を被って3つの主要な問題が発生します。
1. 1 。 To use your Java applications, your user will also have to jailbrake their iPhone. Javaアプリケーションを使用して、ユーザにもそのイメージをjailbrakeです。 As such its usage will be limited to highly technical people who are not afraid of tinkering with their costly iPhone and potentially even risk damaging it permanently!その利用方法としては、このような高度な技術の人々に限定される恐れはないwhoいじくりまわすことに高価なイメージと潜在的に不利なことさえ危険性を完全に!

2. 2 。 While it may be fine for experimenting, the legality is dubious. 5月に罰金を実験中には、合法性が疑わしい。 You may run into problem with Apple for selling or even distributing such applications.実行に問題がある場合があります。アップルコンピュータ社への販売や配布もこのようなアプリケーションに最適です。

3. 3 。 The jailbraked versions of iPhone may not be compatible with future firmware updates, and Apple will try their best to disable them at every opportunity and had done so in the past. jailbrakedのバージョンのイメージすることができないと互換性が今後のファームウェアの更新プログラム、およびアップルは、試しに最善を無効にしていた機会あるごとに、これを編集して項目です。

All of the above makes method 2 unsuitable for commercial use.により、上記の方法2のすべての商業的な使用に適さない。

Commercial J2ME developers have to wait for commercial release of alcheMo-for-iPhone. J2MEの開発者が商業的にリリースされるまで待つalchemo商業ベースでイメージです。 Innaworks is well known for porting standards compliant J2ME to BREW mobile platform. innaworksはよく知らをBREWへの移植は標準に準拠しJ2MEのモバイルプラットフォームです。 I expect their solution to be ready in 2-3 months time.私の解決策を期待するのは時間の準備を2-3ヶ月です。 If you do not have the time then download Apple’s時間をお持ちでない場合は、入力し、ダウンロード、アップル社の iPhone SDK SDKのイメージ and start coding in Objective C.とスタート]ボタンを符号化し客観的c.
BTW: Make sure you read the iPhone SDK agreement carefully before you invest huge sums in iPhone development.ところで: SDKのイメージを確実に読んで、契約書を慎重に巨額の投資をする前に、イメージの開発です。