I am getting error while running the Run.bat batch file - Exception in thread "UI:MainUI" java.lang.ExceptionInInitializerError

122 views
Skip to first unread message

pranav...@gmail.com

unread,
Jun 25, 2018, 2:51:55 AM6/25/18
to Cognizant Intelligent Test Scripter
After running the batch file, below error is observed in Log file. 

2018-06-24 22:42:07:06S +0530 [INFO] com.cognizant.cognizantits.ide.main.Main main:Launching Cognizant Intelligent Test Scripter IDE
2018-06-24 22:42:08:06S +0530 [INFO] com.cognizant.cognizantits.engine.support.reflect.ClassFinder checkJarFile:Finding Commands in C:\CITS\cognizant-intelligent-test-scripter-1.1-setup\cognizant-intelligent-test-scripter-1.1\lib\cognizant-intelligent-test-scripter-engine-1.1.jar
2018-06-24 22:42:11:06S +0530 [INFO] com.cognizant.cognizantits.engine.drivers.ChromeEmulators load:Loading ChromeEmulators from file
Exception in thread "UI:MainUI" java.lang.ExceptionInInitializerError
at com.cognizant.cognizantits.ide.main.shr.image.SikuliSettings.init(SikuliSettings.java:28)
at com.cognizant.cognizantits.ide.main.shr.image.ImageSpy.<init>(ImageSpy.java:62)
at com.cognizant.cognizantits.ide.main.shr.SHR.<init>(SHR.java:44)
at com.cognizant.cognizantits.ide.main.mainui.AppMainFrame.<init>(AppMainFrame.java:111)
at com.cognizant.cognizantits.ide.main.Main.lambda$launchUI$0(Main.java:85)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NumberFormatException: For input string: "."
at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at org.sikuli.basics.Settings.<clinit>(Settings.java:123)
... 6 more

shantha laxmi kumar

unread,
Jun 25, 2018, 6:20:08 AM6/25/18
to Cognizant Intelligent Test Scripter

From your console log we could see that the exception is thrown by Sikuli, please ensure that you use Java version 8 and that it is mapped to the environment variable. Please let us know the java version used in your system or that which CITS is using. You can type “java -version” in the command prompt and share us the screenshot of the result.

pranav...@gmail.com

unread,
Jun 28, 2018, 1:20:50 AM6/28/18
to Cognizant Intelligent Test Scripter

Hi Shantha,

The java version on my system is 10. Attached screenshot for the same.
Is it fine to use java version above 8?

shantha laxmi kumar

unread,
Jun 28, 2018, 1:26:40 AM6/28/18
to Cognizant Intelligent Test Scripter
Please use Java 8 as CITS supports this version of Java. 
Reply all
Reply to author
Forward
0 new messages