← Back to team overview

sikuli-driver team mailing list archive

[Bug 1751840] [NEW] Error creating App object on linux using Java

 

Public bug reported:

Using Java 9, and the latest 1.1.2 nightly build

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/exec/ExecuteStreamHandler
 at java.base/java.lang.Class.forName0(Native Method)
 at java.base/java.lang.Class.forName(Class.java:292)
 at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36)
 at org.sikuli.script.App.<clinit>(App.java:40)
 at flax.Flax.main(Flax.java:81)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.exec.ExecuteStreamHandler
 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
 at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
 ... 5 more

Line of code causing the error is
atitd = new App("A Tale in the Desert");

(atitd was declared elsewhere, this is just the assignment)

Code executes successfully on Mac OS X, error is only thrown in Linux.

** Affects: sikuli
     Importance: Undecided
         Status: New

** Description changed:

+ Using Java 9, and the latest 1.1.2 nightly build
+ 
  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/exec/ExecuteStreamHandler
- 	at java.base/java.lang.Class.forName0(Native Method)
- 	at java.base/java.lang.Class.forName(Class.java:292)
- 	at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36)
- 	at org.sikuli.script.App.<clinit>(App.java:40)
- 	at flax.Flax.main(Flax.java:81)
+  at java.base/java.lang.Class.forName0(Native Method)
+  at java.base/java.lang.Class.forName(Class.java:292)
+  at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36)
+  at org.sikuli.script.App.<clinit>(App.java:40)
+  at flax.Flax.main(Flax.java:81)
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.exec.ExecuteStreamHandler
- 	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
- 	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
- 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
- 	... 5 more
+  at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
+  at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
+  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
+  ... 5 more
  
  Line of code causing the error is
  atitd = new App("A Tale in the Desert");
  
  (atitd was declared elsewhere, this is just the assignment)
  
  Code executes successfully on Mac OS X, error is only thrown in Linux.

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

Title:
  Error creating App object on linux using Java

Status in Sikuli:
  New

Bug description:
  Using Java 9, and the latest 1.1.2 nightly build

  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/exec/ExecuteStreamHandler
   at java.base/java.lang.Class.forName0(Native Method)
   at java.base/java.lang.Class.forName(Class.java:292)
   at org.sikuli.natives.SysUtil.getOSUtil(SysUtil.java:36)
   at org.sikuli.script.App.<clinit>(App.java:40)
   at flax.Flax.main(Flax.java:81)
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.exec.ExecuteStreamHandler
   at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
   at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
   ... 5 more

  Line of code causing the error is
  atitd = new App("A Tale in the Desert");

  (atitd was declared elsewhere, this is just the assignment)

  Code executes successfully on Mac OS X, error is only thrown in Linux.

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


Follow ups