RaiMan / SikuliX-2014

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

Some java.version give an exception #182

Open wernight opened 8 years ago

wernight commented 8 years ago
Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.sikuli.basics.Debug.log(Debug.java:697)
        at org.sikuli.basics.Debug.logx(Debug.java:675)
        at org.sikuli.script.RunTime.log(RunTime.java:99)
        at org.sikuli.script.RunTime.get(RunTime.java:184)
        at org.sikuli.setup.RunSetup.main(RunSetup.java:165)
Caused by: java.lang.NumberFormatException: For input string: "i"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:679)
        at java.lang.Integer.parseInt(Integer.java:797)
        at org.sikuli.basics.Settings.<clinit>(Settings.java:123)
        ... 5 more

From Settings.java it should have a try-catch and/or handle more cases. My java.version is 9-internal hence it'd try to Integer.parseInt("i") which fails of course.

RaiMan commented 8 years ago

Thanks. ... coming right back from the future ;-)