MAC OSX 10.5 JDK1.6(64bit) Eclipse3.5(64bit) GAE
JDK1.6を使いたい理由が出来たので、挑戦してみました。
Mac OSX 10.5
JDK1.6 (64bit)
Eclipse 3.5 (64bit)
上記環境で、GAEを使用します。
デフォルトだと、JDKは1.5の32bitになっているので、変更します。
参考: http://blog.promob.jp/fri/2010/01/macgoogle-android.html
MacintoshHD→アプリケーション→ユーティリティ→Java Preferencesを実行します。
出てきた画面で、「java se 6 64-bit」をドラッグして先頭に持ってきます。
これで、JDK1.6(64bit)がデフォルトになります。
Eclipse Downloadsから、eclipse mac cocoa 64 bitをダウンロードします。
ダウンロードしたファイルを展開して、フォルダ毎、Applicationsへ移動します。
フォルダの中にある、eclipseをドラッグしてDocに登録しておきます。
eclipseを起動します。
eclipse→環境設定で、java→installed JREsとCompilerを確認する。JVM 1.6.0になっていればOKです。
help→Install New Softwareを選びます。
[Add]ボタンを押して、
Nameに、http://dl.google.com/eclipse/plugin/3.5
Locationにhttp://dl.google.com/eclipse/plugin/3.5
を入力します。
PluginとSDKsにチェックを入れて、[Next]を押し、
利用規約に同意したら、[I accept the terms of the Eclipse agreements]を選択して、[Finish]ボタンをクリックします。
ここで、Security Warning が出ます。内容を確認して問題なければ、OKボタンをクリックします。
eclipseの再起動を求められるので、[Yes]ボタンをクリックします。
うまくいけば、再起動後に、3つのアイコンがメニューにでます。
GAEのプロジェクトを作成します。eclipseのPackage Explorerのwarディレクトリに、適当なfavicon.icoをコピーしておきます。
GAE のプロジェクトを作成して、実行すると、以下のエラーがでます。
com.google.appengine.tools.development.agent.impl.BlackList initBlackList 致命的: Unable to read a jre library while constructing the blacklist. Security restrictions may not be entirely emulated. /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/plugin.jar
Google グループ
に引っかかっているようです。
cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ ls -l plugin.jar rlrwxr-xr-x 1 root wheel 97 1 1 23:53 plugin.jar -> /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/plugin2.jar sudo ln -s /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/plugin.jar /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/plugin2.jar
これで、OKです。
あとは、Package Explorerにあるプロジェクト名を右クリックし、[Google]-[Deploy to App Engine]からGAEのアカウントなどの設定をします。
一番簡単な、アプリのアップロードまで、確認する事ができました。