I have Ubuntu Linux 8.04 on a 64 bit AMD processor, java 6. DDMS
installed without a problem, works fine. I do remember that initially,
long before I installed the Android sdk, I had problems with Eclipse,
until I found what startup command parameters I had to use to make it
work properly, and I think I changed a script somewhere, but I don't
remember exactly.
I do know that 64 bits is a bitch, sometimes.


On Dec 22, 10:31 pm, Mark Murphy <[email protected]> wrote:
> Mark Murphy wrote:
> > Environment:
> > -- Ubuntu 8.10 Intrepid Ibex 2.6.27-9-generic x86_64 GNU/Linux
> > -- Sun Java 6 JDK
> >    java version "1.6.0_10"
> >    Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
> >    Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)
> > -- ia32-libs installed
>
> > The emulator runs fine, as does the ant build chain, adb, and
> > activitycreator.
>
> > However, DDMS fails, complaining that tools/lib/libswt-pi-gtk-3236.so
> > has "wrong ELF class: ELFCLASS32 (Possible cause: architecture word
> > width mismatch)"
>
> > Does anyone have DDMS working on 64-bit Linux? If so...any tips?
>
> OK, replying to myself with my "solution". I'm not a shell-script
> jockey, otherwise I'd contribute something back as a patch. But, here's
> what I did:
>
> -- Installed the ia32-java-6-sun package, which is a 32-bit JRE that
> runs under 64-bit Linux
>
> -- Copied tools/ddms to tools/ddms64
>
> -- Modified line 72 of tools/ddms64 to read:
>
> java_cmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"
>
> And it works. You might want to use update-java-alternatives --list to
> confirm the path to the 32-bit JRE, as that could change over time based
> on new editions of this package.
>
> What this does is force DDMS to use the 32-bit JRE rather than whatever
> update-java-alternatives has as the default edition of java to run.
>
> I am sure there's a more elegant way of resolving this problem, but I'll
> leave that to the experts.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to