RaiMan / SikuliX-2014

SikuliX version 1.1.2 (until February 2018)
http://sikulix.com
805 stars 235 forks source link

Java version 9 not supported with version 1.1.x (... and will never be :-( --- use Java 8 #288

Closed ewalti closed 6 years ago

ewalti commented 6 years ago

From a fresh install of SikuliX 1.1.1, Java Version 8 Update 151, on OSX 10.12.5, attempting to java -jar sikulixsetup-1.1.1.jar results in:

[error] RunTimeINIT:  *** terminating: Java version must be 1.7 or later!

according to java -version:

java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

Is there a different version of Java I should rollback to to get this to run?

ewalti commented 6 years ago

Apparently it was due to the Java version 9. I installed jre-8u152 and switched my Java version by doing the following:

$ /usr/libexec/java_home -V

which lists all the installed JVMS:

Matching Java Virtual Machines (2):
    9.0.1, x86_64:  "Java SE 9.0.1" /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
    1.8.0_152, x86_64:  "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home

and I changed my JAVA_HOME to match that of 1.8.0_152

export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_152`

Now java -version shows:

java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

and the installer works