gradle
[Java]
Tips
ERROR: JAVA_HOME is set to an invalid directory となる
$ gradle -v ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/default-java Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
- 対応
- シンボリックリンクを貼る
$ sudo ln -s /usr/lib/jvm/java-7-oracle /usr/lib/jvm/default-java
- 結果
$ gradle -v ------------------------------------------------------------ Gradle 1.4 ------------------------------------------------------------ Gradle build time: 2013年9月9日 20時44分25秒 UTC Groovy: 1.8.6 Ant: Apache Ant(TM) version 1.9.3 compiled on April 8 2014 Ivy: non official version JVM: 1.7.0_45 (Oracle Corporation 24.45-b08) OS: Linux 3.13.0-30-generic amd64
YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto
Copyright© 矢木 浩人 All Rights Reserved.