Sikulix script execution is not starting from commandline

Asked by Padam Jain on 2020-01-14

Hi,

I am having problems in starting Sikulix script execution when using command line.
Sikulix version : 2.0.1
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

Everything is ok when i use IDE but below are the errors when used from command line :
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

[DEBUG]startUp: IDE: *********************** leaving start
[47 debug] Sikulix: starting IDE
[1902 debug] RunTime:***** final cleanup at System.exit() *****

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2020-01-15
Last query:
2020-01-15
Last reply:
2020-01-14
Padam Jain (padamjain) said : #1

More info : No runner added can be seen in log fiels on console.

RaiMan (raimund-hocke) said : #2

System?

Padam Jain (padamjain) said : #3

Windows 10 64 bit

Padam Jain (padamjain) said : #4

Full log is here :
C:\PICUS\PICUS.sikulix>java -jar C:\PICUS\PICUS.sikulix\sikulix.jar -r -v C:\PICUS\PICUS.sikulix\mainTest
[DEBUG]startUp: IDE: Running: C:\PICUS\PICUS.sikulix\sikulix.jar
[DEBUG]startUp: IDE: AppData: C:\Users\pdj\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[DEBUG]startUp: IDE: adding extension: C:\Users\pdj\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar
[DEBUG]startUp: IDE: adding extension: C:\Users\pdj\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[191 debug] Options: loadOptions: Options file: C:\Users\pdj\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
[201 debug] RunTime:temp folder ok: C:\Users\pdj\AppData\Local\Temp\Sikulix_137095438
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\pdj\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.1-2019-11-22_16:54 API
user.home: C:\Users\pdj
user.dir (work dir): C:\PICUS\PICUS.sikulix
user.name: pdj
java.io.tmpdir: C:\Users\pdj\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.231-b11 class 52.0 arch 64
app data folder: C:\Users\pdj\AppData\Roaming\Sikulix
executing jar: C:\PICUS\PICUS.sikulix\sikulix.jar
*** classpath dump sikulix
  0: file:/C:/PICUS/PICUS.sikulix/sikulix.jar
*** classpath dump end
***** show environment end
[DEBUG]startUp: IDE: *********************** leaving start
[36 debug] Sikulix: starting IDE
[1743 debug] RunTime:***** final cleanup at System.exit() *****
[1783 debug] FileManager: deleteFileOrFolder:
C:\Users\pdj\AppData\Local\Temp\Sikulix_137095438

C:\PICUS\PICUS.sikulix>pause
Press any key to continue . . .

RaiMan (raimund-hocke) said : #5

Might sound odd, but try to not use folders like (ending .sikulix)
C:\PICUS\PICUS.sikulix

to store the jars.

use something like:
C:\PICUS\Sikulix

the rest looks ok

Padam Jain (padamjain) said : #6

Still same issue :

C:\PICUS>java -jar "C:\PICUS\sikulix.jar" -r -v mainTest
[DEBUG]startUp: IDE: Running: C:\PICUS\sikulix.jar
[DEBUG]startUp: IDE: AppData: C:\Users\pdj\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[DEBUG]startUp: IDE: adding extension: C:\Users\pdj\AppData\Roaming\Sikulix\Extensions\jruby-complete-9.2.0.0.jar
[DEBUG]startUp: IDE: adding extension: C:\Users\pdj\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[197 debug] Options: loadOptions: Options file: C:\Users\pdj\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
[209 debug] RunTime:temp folder ok: C:\Users\pdj\AppData\Local\Temp\Sikulix_526423691
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\pdj\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.1-2019-11-22_16:54 API
user.home: C:\Users\pdj
user.dir (work dir): C:\PICUS
user.name: pdj
java.io.tmpdir: C:\Users\pdj\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 8 version 1.8 vm 25.231-b11 class 52.0 arch 64
app data folder: C:\Users\pdj\AppData\Roaming\Sikulix
executing jar: C:\PICUS\sikulix.jar
*** classpath dump sikulix
  0: file:/C:/PICUS/sikulix.jar
*** classpath dump end
***** show environment end
[DEBUG]startUp: IDE: *********************** leaving start
[39 debug] Sikulix: starting IDE
[1794 debug] RunTime:***** final cleanup at System.exit() *****
[1865 debug] FileManager: deleteFileOrFolder:
C:\Users\pdj\AppData\Local\Temp\Sikulix_526423691

C:\PICUS>pause

Best RaiMan (raimund-hocke) said : #7

Uuuups, such easy (sorry, not seen that before):

must be:
java -jar "C:\PICUS\sikulix.jar" - v -r mainTest

Padam Jain (padamjain) said : #8

Thanks RaiMan, that solved my question.