You are on page 1of 6

Problem launching android AVM/SDK gui using the tools/android executable in the android SDK. Ubuntu 10.

04, i686 up vote 3 down vote favorite 1 ********************************* ********************************* LA SOLUCION ES ESTA DESDE LA TERMINAL: sudo mount -o remount,exec /tmp ******************** ********************

Hi I just installed the android SDK along with Eclipse 3.5 on my i686 Thinkpad T 60 running Ubuntu 10.04 (Lucid). (Eclipse was installed via synaptic, i.e. a pac kage from the repository.) I installed the eclipse add on and everything on the Eclipse end seems fine. I also put the android-sdk tools directory on my user PA TH. Now launching tools/android without any arguments is supposed to bring up th e SDK and AVD manager GUI, but instead I get the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3550 or sw t-gtk in swt.library.path, java.library.path or the jar file at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.C.<clinit>(Unknown Source) at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source) at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source) at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source) at com.android.sdkmanager.Main.showMainWindow(Main.java:265) at com.android.sdkmanager.Main.doAction(Main.java:249) at com.android.sdkmanager.Main.run(Main.java:94) at com.android.sdkmanager.Main.main(Main.java:83) The strange thing is I definitely have all the prerequisites installed, sun-java 6-jdk, and open-java6-jdk and have tried switching between them. Also if I look in synaptic I have libswt-gtk-3.5java installed. Also he AVM/SDK manager launche s fine when I launch it with eclipse. (You may wonder why i care, but I like working from the command line, and consid ering using emacs as my IDE rather than Eclipse.) If anyone knows how i can fix this please let me know. java android ubuntu-10.04 share|improve this question asked Jul 27 '10 at 14:56 zbeekman 8616

Hey - mark Bart's answer as accepted! :) It works. Konklone Jun 23 at 20:02 add comment 5 Answers

active oldest votes up vote 19 down vote (copied from Ubuntuforums http://ubuntuforums.org/showthread.php?t=1540054) I had the same issue 12 months on. I discovered that it was because I had made t he /tmp directory "noexec" as soon as I made it executable, we were fine. sudo mount -o remount,exec /tmp Hope this helps someone. share|improve this answer answered Aug 29 '11 at 6:44 Bart 19113

Thanks that helped me! took me some time to get to your answer charroch Sep 6 ' 11 at 13:11 Wowza. That is the magic Harry Potter spell. This got DDMS to run from the comma nd line (not thru eclipse) on my Kubuntu 11.10 AMD64 install. Thank you. Garnet Ulrich May 12 '12 at 22:23 right there! another reason to hate java even harder than before... it tries to execute /tmp/swtlib-32/libswt-gtk-3550.so go figure... so if you really need RO /tmp (and you should) just symlink this dir to another place... gcb Nov 9 '12 a t 2:11 I don't remember ever doing this. I think it might be the default on linux mint. Paul Brannan May 30 at 21:55 Yeah, Ubuntu never gave me this problem - only Linux Mint. I hope the asker mark s your answer as accepted someday! Konklone Jun 23 at 20:02 add comment up vote 0 down vote Have a look at android <command> --no-ui This doesn't require SWT/GTK at all. share|improve this answer answered Feb 15 '11 at 10:45 anselm 3941316 add comment up vote 0 down vote ********************************* *********************************

LA SOLUCION ES ESTA DESDE LA TERMINAL: sudo mount -o remount,exec /tmp ******************** ******************** just a better way to show Problem launching android AVM/SDK gui using the tools/android executable in the android SDK. Ubuntu 10.04, i686 up vote 3 down vote favorite 1 Hi I just installed the android SDK along with Eclipse 3.5 on my i686 Thinkpad T 60 running Ubuntu 10.04 (Lucid). (Eclipse was installed via synaptic, i.e. a pac kage from the repository.) I installed the eclipse add on and everything on the Eclipse end seems fine. I also put the android-sdk tools directory on my user PA TH. Now launching tools/android without any arguments is supposed to bring up th e SDK and AVD manager GUI, but instead I get the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3550 or sw t-gtk in swt.library.path, java.library.path or the jar file at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.C.<clinit>(Unknown Source) at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source) at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source) at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source) at com.android.sdkmanager.Main.showMainWindow(Main.java:265) at com.android.sdkmanager.Main.doAction(Main.java:249) at com.android.sdkmanager.Main.run(Main.java:94) at com.android.sdkmanager.Main.main(Main.java:83) The strange thing is I definitely have all the prerequisites installed, sun-java 6-jdk, and open-java6-jdk and have tried switching between them. Also if I look in synaptic I have libswt-gtk-3.5java installed. Also he AVM/SDK manager launche s fine when I launch it with eclipse. (You may wonder why i care, but I like working from the command line, and consid ering using emacs as my IDE rather than Eclipse.) If anyone knows how i can fix this please let me know. java android ubuntu-10.04 share|improve this question asked Jul 27 '10 at 14:56 zbeekman 8616

Hey - mark Bart's answer as accepted! :) It works. Konklone Jun 23 at 20:02 add comment 5 Answers active oldest votes up vote 19 down vote

(copied from Ubuntuforums http://ubuntuforums.org/showthread.php?t=1540054) I had the same issue 12 months on. I discovered that it was because I had made t he /tmp directory "noexec" as soon as I made it executable, we were fine. ********************************* ********************************* LA SOLUCION ES ESTA DESDE LA TERMINAL: sudo mount -o remount,exec /tmp ******************** ******************** Hope this helps someone. share|improve this answer answered Aug 29 '11 at 6:44 Bart 19113

Thanks that helped me! took me some time to get to your answer charroch Sep 6 ' 11 at 13:11 Wowza. That is the magic Harry Potter spell. This got DDMS to run from the comma nd line (not thru eclipse) on my Kubuntu 11.10 AMD64 install. Thank you. Garnet Ulrich May 12 '12 at 22:23 right there! another reason to hate java even harder than before... it tries to execute /tmp/swtlib-32/libswt-gtk-3550.so go figure... so if you really need RO /tmp (and you should) just symlink this dir to another place... gcb Nov 9 '12 a t 2:11 I don't remember ever doing this. I think it might be the default on linux mint. Paul Brannan May 30 at 21:55 Yeah, Ubuntu never gave me this problem - only Linux Mint. I hope the asker mark s your answer as accepted someday! Konklone Jun 23 at 20:02 add comment up vote 0 down vote Have a look at android <command> --no-ui This doesn't require SWT/GTK at all. share|improve this answer answered Feb 15 '11 at 10:45 anselm 3941316

add comment up vote 0 down vote just a better way to show the code.. consider this a comment from @Bart answer.. . for some reason it tries to exec swt-lib from /tmp. that's wrong and dumb and i have no idea who's the culprit here (android or the java lib itself) so, if you don't want to remount /tmp as RW, just symlink that swtlib dir to som e place else. i moved it to the android dir. (0) ~ hobo$ mv /tmp/swtlib-32 android/ (0) ~ hobo$ ln -sf ~/android/swtlib-32 /tmp/swtlib-32 (0) ~ hobo$ android/android-sdk-linux/tools/android share|improve this answer answered Nov 9 '12 at 2:16 gcb 1,3761223 add comment up vote 0 down vote Additionally to what the user Bart well and correctly said I suggest to pay atte ntion into the tip bellow: Advanced linux users or geeks more often will face this issue. A "tweak" (usuall y to get more speed) applied in /etc/fstab making /tmp as noexec will cause this problem. Just open fstab and modify the entry as follow bellow: sudo gedit /etc/fstab If you have something like this just comment the line or modify the content: tmpfs /tmp tmpfs defaults,noexec,nodev,nosuid 0 0 TO: tmpfs /tmp tmpfs defaults,nodev,nosuid 0 0 share|improve this answerthe code.. consider this a comment from @Bart answer... for some reason it tries to exec swt-lib from /tmp. that's wrong and dumb and i have no idea who's the culprit here (android or the java lib itself) so, if you don't want to remount /tmp as RW, just symlink that swtlib dir to som e place else. i moved it to the android dir. (0) ~ hobo$ mv /tmp/swtlib-32 android/ (0) ~

hobo$ ln -sf ~/android/swtlib-32 /tmp/swtlib-32 (0) ~ hobo$ android/android-sdk-linux/tools/android share|improve this answer answered Nov 9 '12 at 2:16 gcb 1,3761223 add comment up vote 0 down vote Additionally to what the user Bart well and correctly said I suggest to pay atte ntion into the tip bellow: Advanced linux users or geeks more often will face this issue. A "tweak" (usuall y to get more speed) applied in /etc/fstab making /tmp as noexec will cause this problem. Just open fstab and modify the entry as follow bellow: sudo gedit /etc/fstab If you have something like this just comment the line or modify the content: tmpfs /tmp tmpfs defaults,noexec,nodev,nosuid 0 0 TO: tmpfs /tmp tmpfs defaults,nodev,nosuid 0 0 share|improve this answer

You might also like