DRnwl / android-projector

Automatically exported from code.google.com/p/android-projector
0 stars 0 forks source link

NoClassDefFoundError when trying to run projector #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get this error when trying to run the program on my Mac with the latest sdk 
installed:

Exception in thread "Thread-1" java.lang.NoClassDefFoundError: 
org/eclipse/swt/graphics/Device
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.graphics.Device
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

It seems odd that the program is trying to load a class from an eclipse 
package, doesn't it?  I do have Eclipse on my computer.  Is there something 
from it that I need to add to my path, perhaps?  If so, what?

Original issue reported on code.google.com by jmo...@t-sciences.com on 18 Apr 2011 at 2:02

GoogleCodeExporter commented 9 years ago
I'm getting this error, also.

Original comment by sigmazer...@gmail.com on 2 May 2011 at 4:57

GoogleCodeExporter commented 9 years ago
Same error too!

Original comment by teabe...@gmail.com on 4 May 2011 at 8:13

GoogleCodeExporter commented 9 years ago
It's because it can't find archquery.jar and therefore fails to provide a path 
to swt.jar, which is in tools/lib/x86 or x86_64 respectively, at least on 
Windows.
See issue 4.
http://code.google.com/p/android-projector/issues/detail?id=4

Original comment by SuperPel...@googlemail.com on 9 May 2011 at 3:03

GoogleCodeExporter commented 9 years ago
Thanks for the help. I am using the recent version of android sdk (sdk 11). 
Here adb resides in platform-tools and not tools directory. I had to move 
archquery, swt.jar and ddmlib to the lib/ directory to make it work.

Original comment by Anupama....@gmail.com on 10 Aug 2011 at 6:21

GoogleCodeExporter commented 9 years ago
I've updated the scripts and it now correctly finds archquery.jar and path to 
swt.jar. Please use ver. 0.91, thanks!

Original comment by chinyue on 25 Aug 2011 at 7:03

GoogleCodeExporter commented 9 years ago
I'm sorry, but I continue to have the same error even if arch query.jar is in 
the /lib directory... it seems not to be fixed (?). Many thanks in advance. 
(running OSX Lion and sdk 11).

Original comment by eliascu...@hotmail.com on 19 Oct 2011 at 9:15