Comment 0 for bug 1211878

Revision history for this message
Techno.Scavenger (techno-scavenger) wrote : [1.0.1] Running runScript.cmd throws java.lang.StringIndexOutOfBoundsException

Environment:
OS: W7 32-bit
Java: JRE 1.7 Update 25

Installed SikuliX 1.0.1 then tried to run runScript.cmd -h to view options. Observed error below:

See below for error message:
C:\SikuliX>runScript.cmd -h
+++ running this Java
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
+++ trying to start Sikuli Script
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\SikuliX\sikuli-script.jar -h
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 94
        at java.lang.String.charAt(Unknown Source)
        at org.apache.commons.cli.HelpFormatter.findWrapPos(HelpFormatter.java:9
04)
        at org.apache.commons.cli.HelpFormatter.renderWrappedText(HelpFormatter.
java:835)
        at org.apache.commons.cli.HelpFormatter.printWrapped(HelpFormatter.java:
694)
        at org.apache.commons.cli.HelpFormatter.printWrapped(HelpFormatter.java:
679)
        at org.apache.commons.cli.HelpFormatter.printHelp(HelpFormatter.java:493
)
        at org.apache.commons.cli.HelpFormatter.printHelp(HelpFormatter.java:418
)
        at org.sikuli.basics.CommandArgs.printHelp(CommandArgs.java:160)
        at org.sikuli.basics.SikuliScript.main(SikuliScript.java:73)