まとめ
choco install jdk8 choco install grails
- Download GGTS から 64 bit 版をダウンロード
JDK 8 インストール
choco install jdk8 choco upgrade jdk8
- インストール先は、C:\Program Files\Java\jdk1.8.0_144\ だった。
- 環境変数の設定も自動的に行われていた。
PS C:\WINDOWS\system32> choco install jdk8 Chocolatey v0.10.7 Installing the following packages: jdk8 By installing you accept licenses for the packages. jdk8 v8.0.144 [Approved] jdk8 package files install completed. Performing other installation steps. The package jdk8 wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[N]o/[P]rint): y Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-wi ndows-x64.exe Installing jdk8... jdk8 has been installed. PATH environment variable does not have C:\Program Files\Java\jdk1.8.0_144\bin in it. Adding... jdk8 may be able to be automatically uninstalled. Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type `refreshenv`). The install of jdk8 was successful. Software installed to 'C:\Program Files\Java\jdk1.8.0_144\' Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). PS C:\WINDOWS\system32>
Grails インストール
choco install grails choco upgrade grails
- インストール先は、C:\tools\grails-3.3.0\bin だった。
- 環境変数の設定も自動的に行われていた。
PS C:\WINDOWS\system32> choco install grails Chocolatey v0.10.7 Installing the following packages: grails By installing you accept licenses for the packages. Progress: Downloading Grails 3.3.0... 100% Grails v3.3.0 [Approved] grails package files install completed. Performing other installation steps. The package Grails wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[N]o/[P]rint): y Downloading grails from 'https://github.com/grails/grails-core/releases/download/v3.3.0/grails-3.3.0.zip' Progress: 100% - Completed download of C:\Users\oki2a24\AppData\Local\Temp\Grails\3.3.0\grails-3.3.0.zip (95.25 MB). Download of grails-3.3.0.zip (95.25 MB) completed. Hashes match. Extracting C:\Users\oki2a24\AppData\Local\Temp\Grails\3.3.0\grails-3.3.0.zip to C:\tools... C:\tools PATH environment variable does not have C:\tools\grails-3.3.0\bin in it. Adding... Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type `refreshenv`). The install of grails was successful. Software installed to 'C:\tools' Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). Did you know the proceeds of Pro (and some proceeds from other licensed editions) go into bettering the community infrastructure? Your support ensures an active community, keeps Chocolatey tip top, plus it nets you some awesome features! https://chocolatey.org/compare PS C:\WINDOWS\system32>
GGTS インストール
- Chocolatey などのパッケージ管理システムではインストール出来ないようだ。
- Groovy/Grails Tool Suite? (GGTS) からは 32 bit 版がダウンロードされてしまい、不適だった。次のようなエラーとなった。
--------------------------- GGTS --------------------------- Failed to load the JNI shared library "C:\Program Files\Java\jdk1.8.0_144\bin\..\jre\bin\server\jvm.dll". --------------------------- OK ---------------------------
- 64 bit 版は Download GGTS からダウンロードした。
C:\
に配置し、フォルダ名は ggts として展開した。そうしないと、パスが長すぎて展開できなかった。
おわりに
すべてパッケージ管理システムでインストールできれば楽だったのですけれども、無いものは仕方がないです。
以上です。