Aptana

Aptana Studio1.1 動かない

Mac OS X 10.5にAptana Studio1.1をインストールしてみる。


http://www.aptana.com/studio/ のDownloadボタンを押下すると
http://www.aptana.com/studio/download に遷移する。
Select the download typeでFull Installer(.dmg) OS X 10.4+を選択しDownloadボタンを押下する。
ptana_Studio_Setup.dmgのダウンロードが終了すると
ディスクイメージの中になるAptanaStudio.1.0.pkgが自動的に起動する。
Aptana Studioのインストーラーの指示に従いインストールする。
インストール先は「アプリケーション」フォルダを指定したので
「アプリケーション」フォルダの中に「Aptana Studio」フォルダが作成される。


Aptana Studio」フォルダの内容

 drwxrwxrwx    3 kuru  staff    102  2  3 23:04 Aptana Studio.app
 drwxrwxrwx    4 kuru  staff    136  1 22 15:31 configuration
 drwxrwxrwx   25 kuru  staff    850  1 22 15:31 features
 -rw-rw-rw-    1 kuru  staff   2219  1 22 15:28 full_uninstall.txt
 drwxrwxrwx  125 kuru  staff   4250  1 22 15:32 plugins
 -rw-rw-rw-    1 kuru  staff  34148  1 22 15:28 startup.jar
 -rw-rw-rw-    1 kuru  staff     45  1 22 15:28 version.txt


Aptana Studio.appを起動してみる。
下記のエラーが表示され起動できない。

An error has occurred.

See the log file
/Users/kuru/Library/Application Support/Aptana/Aptana Studio/configuration/120204776017.log.


1202047726017.logの内容

!SESSION 2008-02-03 23:08:45.460 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_13
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=ja_JP
Framework arguments:  -keyring /Users/kuru/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws carbon -keyring /Users/kuru/.eclipse_keyring -consoleLog -showlocation

!ENTRY org.eclipse.update.configurator 4 0 2008-02-03 23:08:47.517
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.update.internal.configurator.ConfigurationActivator.start() of bundle org.eclipse.update.configurator.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1010)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:966)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)
Caused by: org.eclipse.core.runtime.CoreException: Cannot create configuration in file:/Users/kuru/Library/Application Support/Aptana/Aptana Studio/configuration/
	at org.eclipse.update.internal.configurator.Utils.newCoreException(Utils.java:85)
	at org.eclipse.update.internal.configurator.ConfigurationActivator.initialize(ConfigurationActivator.java:113)
	at org.eclipse.update.internal.configurator.ConfigurationActivator.start(ConfigurationActivator.java:71)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:991)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:985)
	... 10 more
Root exception:
org.eclipse.core.runtime.CoreException: Cannot create configuration in file:/Users/kuru/Library/Application Support/Aptana/Aptana Studio/configuration/
	at org.eclipse.update.internal.configurator.Utils.newCoreException(Utils.java:85)
	at org.eclipse.update.internal.configurator.ConfigurationActivator.initialize(ConfigurationActivator.java:113)
	at org.eclipse.update.internal.configurator.ConfigurationActivator.start(ConfigurationActivator.java:71)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:991)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:985)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:966)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)

!ENTRY org.eclipse.core.runtime 4 0 2008-02-03 23:08:47.523
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.core.jobs; bundle-version="[3.2.0,4.0.0)"
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:294)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)

!ENTRY org.eclipse.osgi 4 0 2008-02-03 23:08:47.528
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.update.configurator_3.2.2.R32x_v20070111.jar/ [2] is not active.

!ENTRY org.eclipse.osgi 4 0 2008-02-03 23:08:47.529
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar/ was not resolved.

!ENTRY org.eclipse.osgi 4 0 2008-02-03 23:08:47.532
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:65)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.osgi 2 0 2008-02-03 23:08:47.571
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-02-03 23:08:47.590
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.591
!MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.601
!MESSAGE Missing required bundle org.eclipse.equinox.registry_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.602
!MESSAGE Missing required bundle org.eclipse.core.jobs_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.603
!MESSAGE Missing required bundle org.eclipse.equinox.preferences_[3.2.0,4.0.0).

!ENTRY org.eclipse.osgi 2 0 2008-02-03 23:08:47.604
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-02-03 23:08:47.604
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar/ [3] was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.604
!MESSAGE Missing required bundle org.eclipse.core.jobs_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.605
!MESSAGE Missing required bundle org.eclipse.equinox.registry_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.605
!MESSAGE Missing required bundle org.eclipse.equinox.preferences_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.605
!MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2008-02-03 23:08:47.605
!MESSAGE Missing optionally required bundle org.eclipse.core.runtime.compatibility.auth_[3.2.0,4.0.0).


正常に動作している例もあるのでうまくいくはずなのだが...
http://d.hatena.ne.jp/zariganitosh/20071103/1194140667


Aptana Studio Pluginをインストール


Aptana Studioが調子わるいので、Eclipse Pluginをインストールしてみる。
http://www.aptana.com/studio/download の「Exlipce Plugin」タブを選択すると
Select the download typeは「Eclipse Plugin」が選択された状態になっている。
Downloadボタンを押下するとhttp://update.aptana.com/update/3.2/ に遷移する。
ここの手順に従いプラグインをインストールする。

  1. HelpメニューのSoftware Updates > Find and install...を選択すると Install/Updateウィンドウが表示される
  2. 「Search for new features to install」を選択しNextボタンを押下
  3. NewRemote Site... ボタンを押下
  4. New Update Siteウィンドウが表示される
    1. New Update Siteウィンドウ
  5. Nameに"Aptana Studio"など適当な名前を入力
  6. URLに" http://update.aptana.com/update/3.2/"を入力
  7. OKボタンを押下
  8. InstallウィンドウのFinishボタンを押下
  9. Updateウィンドウが表示される
    1. Updateウィンドウ
  10. Select the features to installリストにAptana RadRailsが表示されるのでチェックボックスを選択する
  11. Nextボタンを押下
  12. I accept the terms in the license agreementsラジオボタンを選択
  13. Nextボタンを押下
  14. Features to install リストに下記のモジュールのバージョンなどが一覧表示される
    1. Aptana Web Development Tools
    2. Aptana Editor Infrastructure
    3. Aptana JavaScript Editor
    4. Aptana CSS Editor
    5. Aptana HTML Editor
  15. Finishボタンを押下
  16. 処理が始まるのでしばらく待つ
  17. Verficationウィンドウが表示される
  18. 「Install All」ボタンを押下
  19. 処理が始まるのでしばらく待つ
  20. Eclipseをリスタートするか聞いてくるので「Yes」ボタンを押下
  21. 再起動するとHelpメニューに「Aptana Studio Start Page...」が追加されているので、これを選択する
  22. Aptana Studio Start Pageが表示されるので「Languages」のRuby on RailsのInstallを選択
  23. Installウィンドウが表示される
  24. Select the features to installリストにAptana RadRailsが表示されるのでチェックボックスを選択する
  25. 「Next」ボタンを押下
  26. I accept the terms in the license agreementsラジオボタンを選択
  27. Nextボタンを押下
  28. 一覧に下記のfeaturesが表示される。
    1. Aptana RadRails 0.9.3.6479
      1. Eclipse Monkey Ruby extension 0.9.3.6479
      2. Aptana RadRails 0.9.3.6479
        1. Ruby Development Tools 0.9.3.6479
  29. 取りあえず全部選択する。
  30. Nextボタンを押下
  31. Features to install リストに下記のモジュールのバージョンなどが一覧表示される
    1. Aptana RadRails
    2. Ruby Mylyn Connector Feature (Optional)
  32. Finishボタンを押下
  33. 処理が始まるのでしばらく待つ
  34. Verficationウィンドウが表示される
  35. 「Install All」ボタンを押下
  36. 処理が始まるのでしばらく待つ
  37. Eclipseをリスタートするか聞いてくるので「Yes」ボタンを押下


インストールが終了したので、既に作成済みのRailsのプロジェクトを実行してみると正常に動作した。
EclipseをバージョンアップしたりしてRailsの開発環境がない状態が続いていたが
これで快適にRailsの開発が出来るようになった。


今回インストールしたEclipse Monkey Ruby extensionって何だ?

メモ


アイデアを生むデジアナ道具術

アイデアを生むデジアナ道具術


この本ではいろいろなデジタルツールとアナログツールを紹介している。