[1.0.1] Windows: runSetup.cmd and runIDE.cmd are not recognising Java 8 - workaround

Asked by steiryx

With ONLY Java 8 installed on Windows, the batch files are not useable
With Java 8 and Java 7 installed, always Java 7 would be used.

------- problem
From the CMD prompt > run runSetup.cmd or runIDE.cmd
     Error displays:
          echo +++ Java not found in standard places C:/PROGRAMS/ or C:/PROGRAMS32
          echo +++ JAVA_HOME not specified

-------- possible workaround
     I have version 8, so I modified the batch file to include version8
     similar to this:
          IF not EXIST "%PROGRAMS%\Java\jre8" goto JAVA7
          set JAVA_HOME=%PROGRAMS%\Java\jre8
          goto JAVA_OK

The general workaround of course is, to set the environment variable JAVA_HOME to point to the Java, that you want to use.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

Thanks for the pointer.

Though 1.0.1 is not guaranteed, to work with Java 8 in all aspects, you can use it at your own risk (it is not supported though and not tested on Java 8).

Recommendation: switch to version 1.1.0 (http://sikulix.com)
... but only after tomorrow, since the only left command file runsikulix.cmd currently has the same problem ;-)

Revision history for this message
steiryx (steiryx) said :
#2

Thanks RaiMan, that solved my question.

Revision history for this message
steiryx (steiryx) said :
#3

I will try my luck with my current java version 8.
I will report if there would be any problem.