← Back to team overview

desktop-packages team mailing list archive

[Bug 1438629] Re: Packaged version of UIAutomatorViewer is broken

 

** Also affects: eclipse (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to eclipse in Ubuntu.
https://bugs.launchpad.net/bugs/1438629

Title:
  Packaged version of UIAutomatorViewer is broken

Status in androidsdk-tools package in Ubuntu:
  New
Status in eclipse package in Ubuntu:
  New

Bug description:
  On a fresh Ubuntu 14.04.2 LTS, android-uiautomatorviewer just does not
  work.

  Install android-uiautomatorviewer and execute uiautomatorviewer:
  Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jface/window/ApplicationWindow
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  Caused by: java.lang.ClassNotFoundException: org.eclipse.jface.window.ApplicationWindow
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   ... 14 more

  The problem is that the wrapper script pass /usr/share/java as
  parameter for -Djava.ext.dirs, while uiautomatorviewer also depends on
  eclipse-rcp jars installed in /usr/lib/eclipse/plugins.

  The patch attached fixes the problem.

  EDIT: but a better fix is https://bugs.launchpad.net/ubuntu/+source
  /androidsdk-tools/+bug/1438629/comments/3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/androidsdk-tools/+bug/1438629/+subscriptions