What JVM uses Groovy be default and how to specify another version?
Output from my server:
$ groovy --version
Groovy Version: 2.4.5 JVM: 1.7.0_95 Vendor: Oracle Corporation OS: Linux
$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
You've probably got JAVA_HOME
pointing to the Java 7 jdk
If you unset it with
unset JAVA_HOME
Groovy should use the default JVM, the same as Java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With