← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #658718]: Installing under OSX 10.12.6 - Not recognising JDK 9

 

Question #658718 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658718

RaiMan posted a new comment:
SikuliX 1.1.x definitely does not work on Java 9 (and never will).

recommendation is, to install Java 8 on current OSX's.

If you have both on your machine (Java 8 and 9) you have to assure, that
Java 8 is used at SikuliX runtime

... easiest option on macOS:
- in a Terminal session
- use the command  /usr/libexec/java_home  to get information about installed Java versions

/usr/libexec/java_home -V
lists the installed versions

/usr/libexec/java_home -v 1.8
switches the currently used version in this Terminal session

So in your case:
/usr/libexec/java_home should point to Java 9

/usr/libexec/java_home -V should list both Java 8 and 9

/usr/libexec/java_home -v 1.8 should switch to Java 8

On Windows with more than one Java installed, you can try with the Java
settings in System setup or use The JAVA_HOME environment variable in a
command line.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.