111d3 Android SDK update tool - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Development > Userland Programming & Scripting

Userland Programming & Scripting C, Shell, Perl, Sed & Awk

Reply
 
Thread Tools Display Modes
  #1  
Old February 19th, 2010, 06:19
Bateleur Bateleur is offline
Junior Member
 
Join Date: Dec 2009
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
Default Android SDK update tool

Hi,

This time I'm trying to run the Android SDK update tool (it is a java application). The application exits with this exception:

Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3550 or swt-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.sdkuilib.internal.repository.UpdaterWindowImpl.open(UpdaterWindowImpl.java:93)
	at com.android.sdkuilib.repository.UpdaterWindow.open(UpdaterWindow.java:110)
	at com.android.sdkmanager.Main.showMainWindow(Main.java:281)
	at com.android.sdkmanager.Main.doAction(Main.java:247)
	at com.android.sdkmanager.Main.run(Main.java:92)
	at com.android.sdkmanager.Main.main(Main.java:81)
>
I have set JAVA_HOME to /usr/local/jdk1.6.0 and linux-f10-gtk2 is installed.

I'm wondering if anyone has had success running the Android update tool. What should I install/configure to get this running?

Thanks!
Reply With Quote
  #2  
Old February 19th, 2010, 12:59
OH OH is offline
Member
 
Join Date: Aug 2009
Location: The Netherlands
Posts: 208
Thanks: 4
Thanked 31 Times in 27 Posts
Default

usr/ports]# make search name=swt
Code:
(...)
Port:   swt-3.5.1
Path:   /usr/ports/x11-toolkits/swt
Info:   Standard Widget Toolkit for Java
(...)
Port:   swt-devel-3.6.m5,1
Path:   /usr/ports/x11-toolkits/swt-devel
Info:   Standard Widget Toolkit for Java
Did you try installing one of those?
Reply With Quote
  #3  
Old February 19th, 2010, 15:04
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,851
Thanks: 30
Thanked 1,892 Times in 1,335 Posts
Default

@Bateleur, please use more descriptive topic titles.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #4  
Old February 19th, 2010, 16:10
Bateleur Bateleur is offline
Junior Member
 
Join Date: Dec 2009
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I did not install any swing port/package. I thought it was installed by default with the jdk. I will try that and see if it fixes my problem.

Thanks!

@DutchDaemon: I will do that - use more descriptive topic titles - in the future.

Cheers!
Reply With Quote
  #5  
Old May 8th, 2012, 23:52
Ievgen Ievgen is offline
Junior Member
 
Join Date: May 2012
Posts: 22
Thanks: 3
Thanked 4 Times in 1 Post
Default Solved

Hi guys, everyone looking for solution here are the steps:
  1. Install linux-sun-jdk1.6.0
  2. Edit the $ANDROID_SDK_HOME/tools/android script, replace the following line:
    Code:
    java_cmd="java"
    with this:
    Code:
    java_cmd="/usr/local/linux-sun-jdk1.6.0/bin/java"
  3. Run /compat/linux/bin/bash as root
  4. Locate the libswt-gtk-3550.so file on your machine, mine was located in /var/tmp/swtlib-64 (don't ask me why)
  5. ldconfig -v /var/tmp/swtlib-64
  6. Verify: ldconfig -p | grep swt
  7. Close linux terminal
You should be able to launch SDK manager now.

Last edited by DutchDaemon; May 9th, 2012 at 00:10. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
The Following 4 Users Say Thank You to Ievgen For This Useful Post:
kr651129 (June 26th, 2012), royj (September 29th, 2012), wblock@ (June 26th, 2012), YZMSQ (September 11th, 2012)
  #6  
Old September 29th, 2012, 23:37
royj royj is offline
Junior Member
 
Join Date: Oct 2010
Location: Saint-Petersburg, Russia
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
Default adb only

If you need just adb, try this - http://blog.bsdroid.org/?category_name=adb ( http://bsdroid.org/downloads/adb.tar.bz2 )
Works for me, FreeBSD 9.0-RELEASE-p3 i386, Atrix 4G MB860
Reply With Quote
The Following User Says Thank You to royj For This Useful Post:
YZMSQ (October 20th, 2012)
  #7  
Old October 3rd, 2012, 04:01
jotawski's Avatar
jotawski jotawski is offline
Member
 
Join Date: Nov 2008
Location: park kred/nontabury/thai
Posts: 198
Thanks: 208
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by Ievgen View Post
Hi guys, everyone looking for solution here are the steps:
  1. Install linux-sun-jdk1.6.0
  2. Edit the $ANDROID_SDK_HOME/tools/android script, replace the following line:
    Code:
    java_cmd="java"
    with this:
    Code:
    java_cmd="/usr/local/linux-sun-jdk1.6.0/bin/java"
  3. Run /compat/linux/bin/bash as root
  4. Locate the libswt-gtk-3550.so file on your machine, mine was located in /var/tmp/swtlib-64 (don't ask me why)
  5. ldconfig -v /var/tmp/swtlib-64
  6. Verify: ldconfig -p | grep swt
  7. Close linux terminal
You should be able to launch SDK manager now.
Hi sirs,

Apologized me but I do not know where $ANDROID_SDK_HOME is.
__________________
best regards,
jotawski

http://makham.blogspot.com FreeBSD for thai
Reply With Quote
  #8  
Old October 28th, 2012, 16:31
YZMSQ's Avatar
YZMSQ YZMSQ is online now
Member
 
Join Date: Nov 2010
Location: Hangzhou,Zhejiang,PRC
Posts: 202
Thanks: 198
Thanked 17 Times in 14 Posts
Default

Quote:
Originally Posted by jotawski View Post
Hi sirs,

Apologized me but I do not know where $ANDROID_SDK_HOME is.
Mine is ~/.android-sdk-linux. You could check it.
__________________
We are all in the gutter, but some of us are looking at the stars.
Unix Toolbox: http://cb.vu/unixtoolbox.xhtml
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Network monitoring tool wonslung Networking 9 December 16th, 2010 06:32
eclipse + subversion + android sdk? mathuin Installation and Maintenance of FreeBSD Ports or Packages 1 July 15th, 2009 19:04
A bug in ipfw tool... cyberman Firewalls 5 May 26th, 2009 14:28
Partitioning - general tool petike Installing & Upgrading 6 January 2nd, 2009 23:29
New port searching tool artificer Installation and Maintenance of FreeBSD Ports or Packages 15 December 8th, 2008 22:27


All times are GMT +1. The time now is 16:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0