← Back to team overview

sikuli-driver team mailing list archive

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

 

Yes, you are right.

With the new release practice of Java, I have to change this advice in this direction:
- you should use the latest LTS release (currently Java 8)
- intermediate releases are not guaranteed to run with SikuliX until otherwise noted

Generally:
- for SikuliX versions up to 1.1.2 bugs are not accepted when running on a Java 9+. The situation has to be verified with SikuliX 1.1.3+, where bugs are accepted targeting Java 9+.

I will change the docs accordingly and post a bug for 1.1.3 with respect
to Java 10.

-- 
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:
  Invalid

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

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


References