DDMS under Mac OS X 10.5 (Snow Leopoard)

by Joel » Mon, 31 Aug 2009 01:40:35 GMT

Sponsored Links
 Under snow leopard I get an error running ddms:

11:17 E/ddms: shutting down due to uncaught exception
11:17 E/ddms: java.lang.UnsatisfiedLinkError: <ANDROID_HOME>/tools/lib/
libswt-pi-carbon-3236.jnilib:  no suitable image found.  Did find:
<ANDROID_HOME>/tools/lib/libswt-pi-carbon-3236.jnilib: no matching
architecture in universal wrapper
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1771)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1045)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
        at org.eclipse.swt.internal.carbon.OS.<clinit>(OS.java:20)
        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:943)
        at org.eclipse.swt.widgets.Display.create(Display.java:923)
        at org.eclipse.swt.graphics.Device.<init>(Device.java:118)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:754)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:745)
        at com.android.ddms.UIThread.runUI(UIThread.java:330)
        at com.android.ddms.Main.main(Main.java:97)

Any fixes for this availabe yet?



DDMS under Mac OS X 10.5 (Snow Leopoard)

by Joel Fischer » Mon, 31 Aug 2009 01:40:54 GMT

 Sorry, the subject line should have stated Mac OS X 10.6, of course.

Under snow leopard I get an error running ddms:


Sponsored Links

DDMS under Mac OS X 10.5 (Snow Leopoard)

by Xavier Ducrohet » Mon, 31 Aug 2009 01:48:26 GMT

 The SWT library uses a native component that must be loaded by the VM.
At this time we only provide the 32bit version.
I'm guessing that in Snow Leopard the default VM is now 64 bit instead
of 32 bit.

To change this go in Applications folder, then Utilities, and launch
the "Java Preferences" app. You'll be able to set a 32 bit VM as the
default one.

Eclipse 3.5 added support for 64bit SWT on MacOS, so we'll migrate to
this to support 32/64 bit on MacOS.


Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.


DDMS under Mac OS X 10.5 (Snow Leopoard)

by foo » Tue, 01 Sep 2009 08:07:12 GMT

 Just in case that didn't work for anyone, for qmodify ddms (TextEdit
works) and add '-d32' to the Java options to force the Java VM to 32
bit by modifying this code:

# Mac OS X needs an additional arg, or you get an "illegal thread"
if [ `uname` = "Darwin" ]; then

to this:

# Mac OS X needs an additional arg, or you get an "illegal thread"
if [ `uname` = "Darwin" ]; then
    os_opts="-XstartOnFirstThread -d32"



Other Threads

1. Video code plays on one android device not on another.

Hi I am using the MediaPlayer API (1.5 version) in android.  I have
successfully gotten the Motorola Droid on Verizon to work well with
the video both in terms of positioning and getting the picture to
appear at all.  However, the same code, using the same application
with the same video source, does not display the video on EVO 4G on

The video documentation is very limited, and I struggled for 2 weeks
to get the Droid to work.  What I noticed was that after the surface
is allocated, and after MediaPlayer.prepareAsync() and its
corresponding listener onPrepare indicates that it is ready, I check
the value of MediaPlayer.getVideoHeight and MediaPlayer.getVideoWidth,
and on the EVO they are 0,0, whereas on the Droid it is the size of
the video, that is non-zero.  So I hardcoded some values instead of
the 0,0, and  I got at least a black background on my display where
the video should be, but no video yet.

 Are there documented difference between android devices that I need
to be aware of in terms of handling video?  I was hoping that by
figuring out one device would allow me to use the same code across all

Any suggestions on this problem will be appreciated.


2. Upgrade to Android 2.2

Dear all,

Is it possible to upgrade the phone OS from Android 2.1 to Android
2.2? How difficult would it be for users to upgrade? I am wondering
whether to use Android 2.2 SDK or not since there are many users that
are using Android 2.1 already.

Thank you for the assistance.

Kind Regards,



3. How to install ZIP files to Xperia X10

4. Ground or Tile overlays possible for Google Map ?

5. Accessing Phone Conversation Audio Stream

6. filtering onMap object depending on their OnScreenCorrdinates

7. USB Debuging problem