← Back to team overview

sikuli-driver team mailing list archive

[Bug 1758900] [NEW] Can not install: PK: command not found OR java.lang.ClassCastException

 

Public bug reported:

Current java from
`brew cask install java`

./sikulix/sikulixsetup-1.1.2.jar
./sikulix/sikulixsetup-1.1.2.jar: line 1: PK: command not found
./sikulix/sikulixsetup-1.1.2.jar: line 2: ?DhL: command not found
./sikulix/sikulixsetup-1.1.2.jar: line 3:?DhL?a??META-INF/MANIFEST.MFE?A: No such file or directory
./sikulix/sikulixsetup-1.1.2.jar: line 4: ?0@?}: command not found
./sikulix/sikulixsetup-1.1.2.jar: line 5: syntax error near unexpected token `)'
./sikulix/sikulixsetup-1.1.2.jar: line 5: `??~hG;4?%????????E??fw?2G??S????ϧ????ִ)?????z?~d?h;??֚?Hȟ???_?q?<?5Itm Us???T??r.
                                                                                                                           ?K???k^PK'

Ok, lets try another command:

java -jar sikulix/sikulixsetup-1.1.2.jar
[error] RunTimeINIT: Java version not detected (using 7): 10+46
java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
*** system properties dump
awt.toolkit                   = sun.lwawt.macosx.LWCToolkit
file.encoding                 = UTF-8
file.encoding.pkg             = sun.io
file.separator                = /
ftp.nonProxyHosts             = local|*.local|169.254/16|*.169.254/16
gopherProxySet                = false
http.nonProxyHosts            = local|*.local|169.254/16|*.169.254/16
java.awt.graphicsenv          = sun.awt.CGraphicsEnvironment
java.awt.printerjob           = sun.lwawt.macosx.CPrinterJob
java.class.path               = sikulix/sikulixsetup-1.1.2.jar
java.class.version            = 54.0
java.home                     = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
java.io.tmpdir                = /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/
java.library.path             = /Users/vitaly/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
java.runtime.name             = Java(TM) SE Runtime Environment
java.runtime.version          = 10+46
java.specification.name       = Java Platform API Specification
java.specification.vendor     = Oracle Corporation
java.specification.version    = 10
java.vendor                   = Oracle Corporation
java.vendor.url               = http://java.oracle.com/
java.vendor.url.bug           = http://bugreport.java.com/bugreport/
java.vendor.version           = 18.3
java.version                  = 10
java.version.date             = 2018-03-20
java.vm.compressedOopsMode    = Zero based
java.vm.info                  = mixed mode
java.vm.name                  = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name    = Java Virtual Machine Specification
java.vm.specification.vendor  = Oracle Corporation
java.vm.specification.version = 10
java.vm.vendor                = "Oracle Corporation"
java.vm.version               = 10+46
jdk.debug                     = release
line.separator                =

os.arch                       = x86_64
os.name                       = Mac OS X
os.version                    = 10.13.3
path.separator                = :
socksNonProxyHosts            = local|*.local|169.254/16|*.169.254/16
sun.arch.data.model           = 64
sun.boot.library.path         = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/lib
sun.cpu.endian                = little
sun.cpu.isalist               =
sun.io.unicode.encoding       = UnicodeBig
sun.java.command              = sikulix/sikulixsetup-1.1.2.jar
sun.java.launcher             = SUN_STANDARD
sun.jnu.encoding              = UTF-8
sun.management.compiler       = HotSpot 64-Bit Tiered Compilers
sun.os.patch.level            = unknown
user.country                  = BY
user.dir                      = /Users/vitaly/intelligent-speaker/extension
user.home                     = /Users/vitaly
user.language                 = en
user.name                     = vitaly
user.timezone                 = Europe/Minsk
*** system properties dump end
[debug] RunTimeINIT: global init: entering as: SETUP
[debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1440 x 900
[debug] RunTimeINIT: Monitor 1: (1440, -1200) 1200 x 1920
[debug] RunTimeINIT: Monitor 2: (-480, -1200) 1920 x 1200
[debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/vitaly/intelligent-speaker/extension/sikulix
***** show environment for SETUP (build 201803080837)
user.home: /Users/vitaly
user.dir (work dir): /Users/vitaly/intelligent-speaker/extension
user.name: vitaly
java.io.tmpdir: /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T
running 64Bit on Mac OSX (10.13.3) from a jar
java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
app data folder: /Users/vitaly/Library/Application Support/Sikulix
libs folder: null
executing jar: /Users/vitaly/intelligent-speaker/extension/sikulix/sikulixsetup-1.1.2.jar
*** classpath dump sikulix
Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
 at org.sikuli.script.RunTime.storeClassPath(RunTime.java:2584)
 at org.sikuli.script.RunTime.dumpClassPath(RunTime.java:2606)
 at org.sikuli.script.RunTime.show(RunTime.java:1246)
 at org.sikuli.script.RunTime.init(RunTime.java:764)
 at org.sikuli.script.RunTime.get(RunTime.java:312)
 at org.sikuli.setup.RunSetup.main(RunSetup.java:169)
[debug] RunTimeSETUP: final cleanup
[debug] FileManager: deleteFileOrFolder:
/var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/Sikulix_129230973


The same for sikulixsetup-1.1.3-20180323.113537-10-forsetup.jar

** Affects: sikuli
     Importance: Undecided
         Status: New

** Description changed:

-  ./sikulix/sikulixsetup-1.1.2.jar 
+ ./sikulix/sikulixsetup-1.1.2.jar
  ./sikulix/sikulixsetup-1.1.2.jar: line 1: PK: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 2: ?DhL: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 3:?DhL?a??META-INF/MANIFEST.MFE?A: No such file or directory
  ./sikulix/sikulixsetup-1.1.2.jar: line 4: ?0@?}: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: syntax error near unexpected token `)'
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: `??~hG;4?%????????E??fw?2G??S????ϧ????ִ)?????z?~d?h;??֚?Hȟ???_?q?<?5Itm Us???T??r.
-                                                                                                                            ?K???k^PK'
+                                                                                                                            ?K???k^PK'
  
+ Ok, lets try another command:
  
- 
- 
- 
- 
- 
- 
- 
- 
- java -jar sikulix/sikulixsetup-1.1.2.jar 
+ java -jar sikulix/sikulixsetup-1.1.2.jar
  [error] RunTimeINIT: Java version not detected (using 7): 10+46
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
- *** system properties dump 
+ *** system properties dump
  awt.toolkit                   = sun.lwawt.macosx.LWCToolkit
  file.encoding                 = UTF-8
  file.encoding.pkg             = sun.io
  file.separator                = /
  ftp.nonProxyHosts             = local|*.local|169.254/16|*.169.254/16
  gopherProxySet                = false
  http.nonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  java.awt.graphicsenv          = sun.awt.CGraphicsEnvironment
  java.awt.printerjob           = sun.lwawt.macosx.CPrinterJob
  java.class.path               = sikulix/sikulixsetup-1.1.2.jar
  java.class.version            = 54.0
  java.home                     = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
  java.io.tmpdir                = /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/
  java.library.path             = /Users/vitaly/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
  java.runtime.name             = Java(TM) SE Runtime Environment
  java.runtime.version          = 10+46
  java.specification.name       = Java Platform API Specification
  java.specification.vendor     = Oracle Corporation
  java.specification.version    = 10
  java.vendor                   = Oracle Corporation
  java.vendor.url               = http://java.oracle.com/
  java.vendor.url.bug           = http://bugreport.java.com/bugreport/
  java.vendor.version           = 18.3
  java.version                  = 10
  java.version.date             = 2018-03-20
  java.vm.compressedOopsMode    = Zero based
  java.vm.info                  = mixed mode
  java.vm.name                  = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.name    = Java Virtual Machine Specification
  java.vm.specification.vendor  = Oracle Corporation
  java.vm.specification.version = 10
  java.vm.vendor                = "Oracle Corporation"
  java.vm.version               = 10+46
  jdk.debug                     = release
- line.separator                = 
+ line.separator                =
  
  os.arch                       = x86_64
  os.name                       = Mac OS X
  os.version                    = 10.13.3
  path.separator                = :
  socksNonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  sun.arch.data.model           = 64
  sun.boot.library.path         = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/lib
  sun.cpu.endian                = little
- sun.cpu.isalist               = 
+ sun.cpu.isalist               =
  sun.io.unicode.encoding       = UnicodeBig
  sun.java.command              = sikulix/sikulixsetup-1.1.2.jar
  sun.java.launcher             = SUN_STANDARD
  sun.jnu.encoding              = UTF-8
  sun.management.compiler       = HotSpot 64-Bit Tiered Compilers
  sun.os.patch.level            = unknown
  user.country                  = BY
  user.dir                      = /Users/vitaly/intelligent-speaker/extension
  user.home                     = /Users/vitaly
  user.language                 = en
  user.name                     = vitaly
  user.timezone                 = Europe/Minsk
  *** system properties dump end
  [debug] RunTimeINIT: global init: entering as: SETUP
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
  [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
  [debug] RunTimeINIT: Monitor 0: (0, 0) 1440 x 900
  [debug] RunTimeINIT: Monitor 1: (1440, -1200) 1200 x 1920
  [debug] RunTimeINIT: Monitor 2: (-480, -1200) 1920 x 1200
  [debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/vitaly/intelligent-speaker/extension/sikulix
  ***** show environment for SETUP (build 201803080837)
  user.home: /Users/vitaly
  user.dir (work dir): /Users/vitaly/intelligent-speaker/extension
  user.name: vitaly
  java.io.tmpdir: /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T
  running 64Bit on Mac OSX (10.13.3) from a jar
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  app data folder: /Users/vitaly/Library/Application Support/Sikulix
  libs folder: null
  executing jar: /Users/vitaly/intelligent-speaker/extension/sikulix/sikulixsetup-1.1.2.jar
  *** classpath dump sikulix
  Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
- 	at org.sikuli.script.RunTime.storeClassPath(RunTime.java:2584)
- 	at org.sikuli.script.RunTime.dumpClassPath(RunTime.java:2606)
- 	at org.sikuli.script.RunTime.show(RunTime.java:1246)
- 	at org.sikuli.script.RunTime.init(RunTime.java:764)
- 	at org.sikuli.script.RunTime.get(RunTime.java:312)
- 	at org.sikuli.setup.RunSetup.main(RunSetup.java:169)
+  at org.sikuli.script.RunTime.storeClassPath(RunTime.java:2584)
+  at org.sikuli.script.RunTime.dumpClassPath(RunTime.java:2606)
+  at org.sikuli.script.RunTime.show(RunTime.java:1246)
+  at org.sikuli.script.RunTime.init(RunTime.java:764)
+  at org.sikuli.script.RunTime.get(RunTime.java:312)
+  at org.sikuli.setup.RunSetup.main(RunSetup.java:169)
  [debug] RunTimeSETUP: final cleanup
  [debug] FileManager: deleteFileOrFolder:
  /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/Sikulix_129230973

** Description changed:

  ./sikulix/sikulixsetup-1.1.2.jar
  ./sikulix/sikulixsetup-1.1.2.jar: line 1: PK: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 2: ?DhL: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 3:?DhL?a??META-INF/MANIFEST.MFE?A: No such file or directory
  ./sikulix/sikulixsetup-1.1.2.jar: line 4: ?0@?}: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: syntax error near unexpected token `)'
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: `??~hG;4?%????????E??fw?2G??S????ϧ????ִ)?????z?~d?h;??֚?Hȟ???_?q?<?5Itm Us???T??r.
                                                                                                                             ?K???k^PK'
  
- Ok, lets try another command:
+ *Ok, lets try another command:*
  
  java -jar sikulix/sikulixsetup-1.1.2.jar
  [error] RunTimeINIT: Java version not detected (using 7): 10+46
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  *** system properties dump
  awt.toolkit                   = sun.lwawt.macosx.LWCToolkit
  file.encoding                 = UTF-8
  file.encoding.pkg             = sun.io
  file.separator                = /
  ftp.nonProxyHosts             = local|*.local|169.254/16|*.169.254/16
  gopherProxySet                = false
  http.nonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  java.awt.graphicsenv          = sun.awt.CGraphicsEnvironment
  java.awt.printerjob           = sun.lwawt.macosx.CPrinterJob
  java.class.path               = sikulix/sikulixsetup-1.1.2.jar
  java.class.version            = 54.0
  java.home                     = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
  java.io.tmpdir                = /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/
  java.library.path             = /Users/vitaly/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
  java.runtime.name             = Java(TM) SE Runtime Environment
  java.runtime.version          = 10+46
  java.specification.name       = Java Platform API Specification
  java.specification.vendor     = Oracle Corporation
  java.specification.version    = 10
  java.vendor                   = Oracle Corporation
  java.vendor.url               = http://java.oracle.com/
  java.vendor.url.bug           = http://bugreport.java.com/bugreport/
  java.vendor.version           = 18.3
  java.version                  = 10
  java.version.date             = 2018-03-20
  java.vm.compressedOopsMode    = Zero based
  java.vm.info                  = mixed mode
  java.vm.name                  = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.name    = Java Virtual Machine Specification
  java.vm.specification.vendor  = Oracle Corporation
  java.vm.specification.version = 10
  java.vm.vendor                = "Oracle Corporation"
  java.vm.version               = 10+46
  jdk.debug                     = release
  line.separator                =
  
  os.arch                       = x86_64
  os.name                       = Mac OS X
  os.version                    = 10.13.3
  path.separator                = :
  socksNonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  sun.arch.data.model           = 64
  sun.boot.library.path         = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/lib
  sun.cpu.endian                = little
  sun.cpu.isalist               =
  sun.io.unicode.encoding       = UnicodeBig
  sun.java.command              = sikulix/sikulixsetup-1.1.2.jar
  sun.java.launcher             = SUN_STANDARD
  sun.jnu.encoding              = UTF-8
  sun.management.compiler       = HotSpot 64-Bit Tiered Compilers
  sun.os.patch.level            = unknown
  user.country                  = BY
  user.dir                      = /Users/vitaly/intelligent-speaker/extension
  user.home                     = /Users/vitaly
  user.language                 = en
  user.name                     = vitaly
  user.timezone                 = Europe/Minsk
  *** system properties dump end
  [debug] RunTimeINIT: global init: entering as: SETUP
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
  [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
  [debug] RunTimeINIT: Monitor 0: (0, 0) 1440 x 900
  [debug] RunTimeINIT: Monitor 1: (1440, -1200) 1200 x 1920
  [debug] RunTimeINIT: Monitor 2: (-480, -1200) 1920 x 1200
  [debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/vitaly/intelligent-speaker/extension/sikulix
  ***** show environment for SETUP (build 201803080837)
  user.home: /Users/vitaly
  user.dir (work dir): /Users/vitaly/intelligent-speaker/extension
  user.name: vitaly
  java.io.tmpdir: /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T
  running 64Bit on Mac OSX (10.13.3) from a jar
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  app data folder: /Users/vitaly/Library/Application Support/Sikulix
  libs folder: null
  executing jar: /Users/vitaly/intelligent-speaker/extension/sikulix/sikulixsetup-1.1.2.jar
  *** classpath dump sikulix
  Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
   at org.sikuli.script.RunTime.storeClassPath(RunTime.java:2584)
   at org.sikuli.script.RunTime.dumpClassPath(RunTime.java:2606)
   at org.sikuli.script.RunTime.show(RunTime.java:1246)
   at org.sikuli.script.RunTime.init(RunTime.java:764)
   at org.sikuli.script.RunTime.get(RunTime.java:312)
   at org.sikuli.setup.RunSetup.main(RunSetup.java:169)
  [debug] RunTimeSETUP: final cleanup
  [debug] FileManager: deleteFileOrFolder:
  /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/Sikulix_129230973

** Description changed:

  ./sikulix/sikulixsetup-1.1.2.jar
  ./sikulix/sikulixsetup-1.1.2.jar: line 1: PK: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 2: ?DhL: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 3:?DhL?a??META-INF/MANIFEST.MFE?A: No such file or directory
  ./sikulix/sikulixsetup-1.1.2.jar: line 4: ?0@?}: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: syntax error near unexpected token `)'
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: `??~hG;4?%????????E??fw?2G??S????ϧ????ִ)?????z?~d?h;??֚?Hȟ???_?q?<?5Itm Us???T??r.
                                                                                                                             ?K???k^PK'
  
- *Ok, lets try another command:*
+ Ok, lets try another command:
  
  java -jar sikulix/sikulixsetup-1.1.2.jar
  [error] RunTimeINIT: Java version not detected (using 7): 10+46
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  *** system properties dump
  awt.toolkit                   = sun.lwawt.macosx.LWCToolkit
  file.encoding                 = UTF-8
  file.encoding.pkg             = sun.io
  file.separator                = /
  ftp.nonProxyHosts             = local|*.local|169.254/16|*.169.254/16
  gopherProxySet                = false
  http.nonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  java.awt.graphicsenv          = sun.awt.CGraphicsEnvironment
  java.awt.printerjob           = sun.lwawt.macosx.CPrinterJob
  java.class.path               = sikulix/sikulixsetup-1.1.2.jar
  java.class.version            = 54.0
  java.home                     = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
  java.io.tmpdir                = /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/
  java.library.path             = /Users/vitaly/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
  java.runtime.name             = Java(TM) SE Runtime Environment
  java.runtime.version          = 10+46
  java.specification.name       = Java Platform API Specification
  java.specification.vendor     = Oracle Corporation
  java.specification.version    = 10
  java.vendor                   = Oracle Corporation
  java.vendor.url               = http://java.oracle.com/
  java.vendor.url.bug           = http://bugreport.java.com/bugreport/
  java.vendor.version           = 18.3
  java.version                  = 10
  java.version.date             = 2018-03-20
  java.vm.compressedOopsMode    = Zero based
  java.vm.info                  = mixed mode
  java.vm.name                  = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.name    = Java Virtual Machine Specification
  java.vm.specification.vendor  = Oracle Corporation
  java.vm.specification.version = 10
  java.vm.vendor                = "Oracle Corporation"
  java.vm.version               = 10+46
  jdk.debug                     = release
  line.separator                =
  
  os.arch                       = x86_64
  os.name                       = Mac OS X
  os.version                    = 10.13.3
  path.separator                = :
  socksNonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  sun.arch.data.model           = 64
  sun.boot.library.path         = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/lib
  sun.cpu.endian                = little
  sun.cpu.isalist               =
  sun.io.unicode.encoding       = UnicodeBig
  sun.java.command              = sikulix/sikulixsetup-1.1.2.jar
  sun.java.launcher             = SUN_STANDARD
  sun.jnu.encoding              = UTF-8
  sun.management.compiler       = HotSpot 64-Bit Tiered Compilers
  sun.os.patch.level            = unknown
  user.country                  = BY
  user.dir                      = /Users/vitaly/intelligent-speaker/extension
  user.home                     = /Users/vitaly
  user.language                 = en
  user.name                     = vitaly
  user.timezone                 = Europe/Minsk
  *** system properties dump end
  [debug] RunTimeINIT: global init: entering as: SETUP
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
  [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
  [debug] RunTimeINIT: Monitor 0: (0, 0) 1440 x 900
  [debug] RunTimeINIT: Monitor 1: (1440, -1200) 1200 x 1920
  [debug] RunTimeINIT: Monitor 2: (-480, -1200) 1920 x 1200
  [debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/vitaly/intelligent-speaker/extension/sikulix
  ***** show environment for SETUP (build 201803080837)
  user.home: /Users/vitaly
  user.dir (work dir): /Users/vitaly/intelligent-speaker/extension
  user.name: vitaly
  java.io.tmpdir: /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T
  running 64Bit on Mac OSX (10.13.3) from a jar
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  app data folder: /Users/vitaly/Library/Application Support/Sikulix
  libs folder: null
  executing jar: /Users/vitaly/intelligent-speaker/extension/sikulix/sikulixsetup-1.1.2.jar
  *** classpath dump sikulix
  Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
   at org.sikuli.script.RunTime.storeClassPath(RunTime.java:2584)
   at org.sikuli.script.RunTime.dumpClassPath(RunTime.java:2606)
   at org.sikuli.script.RunTime.show(RunTime.java:1246)
   at org.sikuli.script.RunTime.init(RunTime.java:764)
   at org.sikuli.script.RunTime.get(RunTime.java:312)
   at org.sikuli.setup.RunSetup.main(RunSetup.java:169)
  [debug] RunTimeSETUP: final cleanup
  [debug] FileManager: deleteFileOrFolder:
  /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/Sikulix_129230973

** Description changed:

+ Current java from
+ `brew cask install java`
+ 
  ./sikulix/sikulixsetup-1.1.2.jar
  ./sikulix/sikulixsetup-1.1.2.jar: line 1: PK: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 2: ?DhL: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 3:?DhL?a??META-INF/MANIFEST.MFE?A: No such file or directory
  ./sikulix/sikulixsetup-1.1.2.jar: line 4: ?0@?}: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: syntax error near unexpected token `)'
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: `??~hG;4?%????????E??fw?2G??S????ϧ????ִ)?????z?~d?h;??֚?Hȟ???_?q?<?5Itm Us???T??r.
                                                                                                                             ?K???k^PK'
  
  Ok, lets try another command:
  
  java -jar sikulix/sikulixsetup-1.1.2.jar
  [error] RunTimeINIT: Java version not detected (using 7): 10+46
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  *** system properties dump
  awt.toolkit                   = sun.lwawt.macosx.LWCToolkit
  file.encoding                 = UTF-8
  file.encoding.pkg             = sun.io
  file.separator                = /
  ftp.nonProxyHosts             = local|*.local|169.254/16|*.169.254/16
  gopherProxySet                = false
  http.nonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  java.awt.graphicsenv          = sun.awt.CGraphicsEnvironment
  java.awt.printerjob           = sun.lwawt.macosx.CPrinterJob
  java.class.path               = sikulix/sikulixsetup-1.1.2.jar
  java.class.version            = 54.0
  java.home                     = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
  java.io.tmpdir                = /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/
  java.library.path             = /Users/vitaly/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
  java.runtime.name             = Java(TM) SE Runtime Environment
  java.runtime.version          = 10+46
  java.specification.name       = Java Platform API Specification
  java.specification.vendor     = Oracle Corporation
  java.specification.version    = 10
  java.vendor                   = Oracle Corporation
  java.vendor.url               = http://java.oracle.com/
  java.vendor.url.bug           = http://bugreport.java.com/bugreport/
  java.vendor.version           = 18.3
  java.version                  = 10
  java.version.date             = 2018-03-20
  java.vm.compressedOopsMode    = Zero based
  java.vm.info                  = mixed mode
  java.vm.name                  = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.name    = Java Virtual Machine Specification
  java.vm.specification.vendor  = Oracle Corporation
  java.vm.specification.version = 10
  java.vm.vendor                = "Oracle Corporation"
  java.vm.version               = 10+46
  jdk.debug                     = release
  line.separator                =
  
  os.arch                       = x86_64
  os.name                       = Mac OS X
  os.version                    = 10.13.3
  path.separator                = :
  socksNonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  sun.arch.data.model           = 64
  sun.boot.library.path         = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/lib
  sun.cpu.endian                = little
  sun.cpu.isalist               =
  sun.io.unicode.encoding       = UnicodeBig
  sun.java.command              = sikulix/sikulixsetup-1.1.2.jar
  sun.java.launcher             = SUN_STANDARD
  sun.jnu.encoding              = UTF-8
  sun.management.compiler       = HotSpot 64-Bit Tiered Compilers
  sun.os.patch.level            = unknown
  user.country                  = BY
  user.dir                      = /Users/vitaly/intelligent-speaker/extension
  user.home                     = /Users/vitaly
  user.language                 = en
  user.name                     = vitaly
  user.timezone                 = Europe/Minsk
  *** system properties dump end
  [debug] RunTimeINIT: global init: entering as: SETUP
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
  [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
  [debug] RunTimeINIT: Monitor 0: (0, 0) 1440 x 900
  [debug] RunTimeINIT: Monitor 1: (1440, -1200) 1200 x 1920
  [debug] RunTimeINIT: Monitor 2: (-480, -1200) 1920 x 1200
  [debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/vitaly/intelligent-speaker/extension/sikulix
  ***** show environment for SETUP (build 201803080837)
  user.home: /Users/vitaly
  user.dir (work dir): /Users/vitaly/intelligent-speaker/extension
  user.name: vitaly
  java.io.tmpdir: /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T
  running 64Bit on Mac OSX (10.13.3) from a jar
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  app data folder: /Users/vitaly/Library/Application Support/Sikulix
  libs folder: null
  executing jar: /Users/vitaly/intelligent-speaker/extension/sikulix/sikulixsetup-1.1.2.jar
  *** classpath dump sikulix
  Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
   at org.sikuli.script.RunTime.storeClassPath(RunTime.java:2584)
   at org.sikuli.script.RunTime.dumpClassPath(RunTime.java:2606)
   at org.sikuli.script.RunTime.show(RunTime.java:1246)
   at org.sikuli.script.RunTime.init(RunTime.java:764)
   at org.sikuli.script.RunTime.get(RunTime.java:312)
   at org.sikuli.setup.RunSetup.main(RunSetup.java:169)
  [debug] RunTimeSETUP: final cleanup
  [debug] FileManager: deleteFileOrFolder:
  /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/Sikulix_129230973

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1758900

Title:
  Can not install: PK: command not found OR java.lang.ClassCastException

Status in Sikuli:
  New

Bug description:
  Current java from
  `brew cask install java`

  ./sikulix/sikulixsetup-1.1.2.jar
  ./sikulix/sikulixsetup-1.1.2.jar: line 1: PK: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 2: ?DhL: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 3:?DhL?a??META-INF/MANIFEST.MFE?A: No such file or directory
  ./sikulix/sikulixsetup-1.1.2.jar: line 4: ?0@?}: command not found
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: syntax error near unexpected token `)'
  ./sikulix/sikulixsetup-1.1.2.jar: line 5: `??~hG;4?%????????E??fw?2G??S????ϧ????ִ)?????z?~d?h;??֚?Hȟ???_?q?<?5Itm Us???T??r.
                                                                                                                             ?K???k^PK'

  Ok, lets try another command:

  java -jar sikulix/sikulixsetup-1.1.2.jar
  [error] RunTimeINIT: Java version not detected (using 7): 10+46
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  *** system properties dump
  awt.toolkit                   = sun.lwawt.macosx.LWCToolkit
  file.encoding                 = UTF-8
  file.encoding.pkg             = sun.io
  file.separator                = /
  ftp.nonProxyHosts             = local|*.local|169.254/16|*.169.254/16
  gopherProxySet                = false
  http.nonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  java.awt.graphicsenv          = sun.awt.CGraphicsEnvironment
  java.awt.printerjob           = sun.lwawt.macosx.CPrinterJob
  java.class.path               = sikulix/sikulixsetup-1.1.2.jar
  java.class.version            = 54.0
  java.home                     = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
  java.io.tmpdir                = /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/
  java.library.path             = /Users/vitaly/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
  java.runtime.name             = Java(TM) SE Runtime Environment
  java.runtime.version          = 10+46
  java.specification.name       = Java Platform API Specification
  java.specification.vendor     = Oracle Corporation
  java.specification.version    = 10
  java.vendor                   = Oracle Corporation
  java.vendor.url               = http://java.oracle.com/
  java.vendor.url.bug           = http://bugreport.java.com/bugreport/
  java.vendor.version           = 18.3
  java.version                  = 10
  java.version.date             = 2018-03-20
  java.vm.compressedOopsMode    = Zero based
  java.vm.info                  = mixed mode
  java.vm.name                  = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.name    = Java Virtual Machine Specification
  java.vm.specification.vendor  = Oracle Corporation
  java.vm.specification.version = 10
  java.vm.vendor                = "Oracle Corporation"
  java.vm.version               = 10+46
  jdk.debug                     = release
  line.separator                =

  os.arch                       = x86_64
  os.name                       = Mac OS X
  os.version                    = 10.13.3
  path.separator                = :
  socksNonProxyHosts            = local|*.local|169.254/16|*.169.254/16
  sun.arch.data.model           = 64
  sun.boot.library.path         = /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/lib
  sun.cpu.endian                = little
  sun.cpu.isalist               =
  sun.io.unicode.encoding       = UnicodeBig
  sun.java.command              = sikulix/sikulixsetup-1.1.2.jar
  sun.java.launcher             = SUN_STANDARD
  sun.jnu.encoding              = UTF-8
  sun.management.compiler       = HotSpot 64-Bit Tiered Compilers
  sun.os.patch.level            = unknown
  user.country                  = BY
  user.dir                      = /Users/vitaly/intelligent-speaker/extension
  user.home                     = /Users/vitaly
  user.language                 = en
  user.name                     = vitaly
  user.timezone                 = Europe/Minsk
  *** system properties dump end
  [debug] RunTimeINIT: global init: entering as: SETUP
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
  [debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
  [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
  [debug] RunTimeINIT: Monitor 0: (0, 0) 1440 x 900
  [debug] RunTimeINIT: Monitor 1: (1440, -1200) 1200 x 1920
  [debug] RunTimeINIT: Monitor 2: (-480, -1200) 1920 x 1200
  [debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/vitaly/intelligent-speaker/extension/sikulix
  ***** show environment for SETUP (build 201803080837)
  user.home: /Users/vitaly
  user.dir (work dir): /Users/vitaly/intelligent-speaker/extension
  user.name: vitaly
  java.io.tmpdir: /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T
  running 64Bit on Mac OSX (10.13.3) from a jar
  java ?7?-64 version 10+46 vm 10+46 class 54.0 arch x86_64
  app data folder: /Users/vitaly/Library/Application Support/Sikulix
  libs folder: null
  executing jar: /Users/vitaly/intelligent-speaker/extension/sikulix/sikulixsetup-1.1.2.jar
  *** classpath dump sikulix
  Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
   at org.sikuli.script.RunTime.storeClassPath(RunTime.java:2584)
   at org.sikuli.script.RunTime.dumpClassPath(RunTime.java:2606)
   at org.sikuli.script.RunTime.show(RunTime.java:1246)
   at org.sikuli.script.RunTime.init(RunTime.java:764)
   at org.sikuli.script.RunTime.get(RunTime.java:312)
   at org.sikuli.setup.RunSetup.main(RunSetup.java:169)
  [debug] RunTimeSETUP: final cleanup
  [debug] FileManager: deleteFileOrFolder:
  /var/folders/n9/5jct_2wn2p1bnxvchfh1kp5w0000gn/T/Sikulix_129230973


  The same for sikulixsetup-1.1.3-20180323.113537-10-forsetup.jar

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1758900/+subscriptions


Follow ups