implementing DroidEx (for 1.6) (Alms for the intellectually poor?)

Janis

Senior Member
Jul 26, 2006
746
37
0
Minneapolis, MN US
I've looked, and I just don't get what it means to "put it on the classpath".

Can someone spell out for me, idiot-proof, how I get DroidEx to work? I have the 1.6 SDK working (not that I've used anything but adb and ddms for producing logs and looking for problems i other people's stuff). I can get screenshots from ddms.

I'm using Windows XP sp3
My SDK is in C:\a-sdk-1.6r1
I have adb and fastboot on C: and have just used it from there.
DroidEx download:
http://groups.google.com/group/cw-android/web/DroidEx-1_6.jar
The instructions I'm using
http://groups.google.com/group/android-discuss/browse_thread/thread/939b320cea3c81d4

I'm not ready to start development myself yet (trust me/if that's not obvious), but I'd really like to get the functionality DroidEx offers. I think it'll also help me get going if I can understand the SDK itself a little better.

Thanks!

Edit: here's what I've tried, and this is what I get:

Code:
C:\>java -cp DroidEx-1_6.jar:/opt/a-sdk-1.6r1/tools/lib/ddmlib.jar com.commonsware.droidex.DroidEx
Exception in thread "main" java.lang.NoClassDefFoundError: com/commonsware/droidex/DroidEx
Caused by: java.lang.ClassNotFoundException: com.commonsware.droidex.DroidEx
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.commonsware.droidex.DroidEx.  Program will exit.
 
Last edited:

Janis

Senior Member
Jul 26, 2006
746
37
0
Minneapolis, MN US
[Bump] Anyone? I dont know Java....

Help me out here. Here I go sending lots of people to Q&A, sometimes for expert help, and now I feel like a stinker for sending them to a bit of a black hole.

Restore my faith?
 

djengizz

Senior Member
Aug 20, 2009
717
3
0
Help me out here. Here I go sending lots of people to Q&A, sometimes for expert help, and now I feel like a stinker for sending them to a bit of a black hole.

Restore my faith?
If you're on windows try using a semicolon to separate the classpath entries.

edit:
I see another error since you're sdk isn't in the opt folder but on the root of C.
Try putting the DroidEx-1_6.jar in the root of C:\, open a command line at the root of C:\ and try:
Code:
java -cp DroidEx-1_6.jar;C:/a-sdk-1.6r1/tools/lib/ddmlib.jar com.commonsware.droidex.DroidEx
I think that should work.
 
Last edited:

Janis

Senior Member
Jul 26, 2006
746
37
0
Minneapolis, MN US
Thank you!!!

It did work! I am so excited, it's bizarre. I don't think I've ever been so enthused about a semicolon before.

There's this app called My Mobiler that does this, and it allows control of the device via the PC, drag&drop file transfer, copy/paste text (which was really handy for all those software registration codes). There are so many things I don't miss about Windows Mobile, but this is one that I do.

Now, to actually capture the video... for free.