• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps problem with sdk installation

cmd prompt said:
C:\softa\android_sdk\tools>android
'java' is not recognized as an internal or external command,
operable program or batch file.
Starting Android SDK and AVD Manager
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.

running the sdk setup does absolutely nothing

my path variable has this:
*otherstuff*;c:\softa\android_sdk\tools;c:\softa\jdk\bin

using win 7 x64, installed java_ee_sdk-5_08-jdk-6u17-windows


so where's my problem?
 
  • Like
Reactions: saravana
I got the same issue running "SDK Setup.exe" from \tools folder. This app just quits without any message or UI. When I run android.bat from the same folder, it gives me :

SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.


I use Windows XP SP3, Eclipse Galileo, JAVA SDK 1.7.
 
Upvote 0
i thought i already edited my post with this, but i did get it working... sort of

the sdk setup nor android.bat still don't do anything, but the "android sdk and avd manager" started when launched from eclipse and i was able to add my targets there as well as create and build a project (hello world) in eclipse :)

I tried Eclipse however when you create a new Android project, it requires a target which is not setup dues not a problem running the android command:

android create avd --target 2 --name my_avd

How did you resolve it


PS Here is what I get exactly when running the command:

C:\Android\tools>android create avd --target 2 --name my_avd
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/a
rchquery/Main (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
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)
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
 
Upvote 0
don't create a new project, go to window -> android sdk and avd manager

from available packages, grab what you need; they'll appear in installed packages at some point

in virtual devices create a new virtual device (emulator). be sure to use a sd card size large enough to make sense, but small enough that your computer has enough ram to run it (took me a while of head scratching after setting the sd card size @ 8 gigs with only 4 gigs of ram on my comp :) )

now you should be able to create a project (might need to restart eclipse / comp)
 
Upvote 0
I'm having the same problem described above. I'm not currently developing for Android, I'm just trying to find a way to install the USB drivers that are compatible with the Droid. I've downloaded and extracted the sdk, but the USB drivers aren't included with it as they were in previous versions. Everything I can find says that I need to run the android.bat file to start the update tool that will let me download the drivers, but when I do so I'm getting the error above. Any help would be appreciated!
 
Upvote 0
I'm having the same problem described above. I'm not currently developing for Android, I'm just trying to find a way to install the USB drivers that are compatible with the Droid. I've downloaded and extracted the sdk, but the USB drivers aren't included with it as they were in previous versions. Everything I can find says that I need to run the android.bat file to start the update tool that will let me download the drivers, but when I do so I'm getting the error above. Any help would be appreciated!

If you use Eclipse, you do not need to run android.bat since Eclipse has internal mechanism to load updates and USB drivers. Try it and let us know if this worked for you.
 
Upvote 0
Hello ,
I have problem installing Android SDK 2.0 on Windows behind proxy requiring authentication because "Android SDK and AVM Manager" is not letting me to specify the user and the password for the company proxy server.

The problem is similar with Joko Sastriawan: Workaround on installing Android SDK 2.0 behind proxy requiring authentication

Can you help me ?I have to mention that I was not able to find a proxy server for windows to use the workaround proposed for ubuntu.
Thanks!
 
Upvote 0
When I try to install the ADK plug-in's to Eclipse I get the following error:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group 0.9.5.v200911191123-20404)
Missing requirement: Android Development Tools 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group 0.9.5.v200911191123-20404) requires 'org.eclipse.gef 0.0.0' but it could not be found

Is this a problem on my computer or something broke on the download site?

Edit:
I might add I have tried installing from the ADT9.5 zip as well but I get the same error.
 
Upvote 0
I know this is kind of old, but I got here from google searching for problems installing the sdk under windows xp.
My problem was when I tried to run 'SDK Setup.exe' nothing happend. Console window would popup and vanquish without a message.
What I did to solve it was to manually create the folders 'add-ons' and 'platforms' under android-sdk root, and then 'SDK Setup.exe' worked just fine.
Cheers!
 
Upvote 0
I know this is kind of old, but I got here from google searching for problems installing the sdk under windows xp.
My problem was when I tried to run 'SDK Setup.exe' nothing happend. Console window would popup and vanquish without a message.
What I did to solve it was to manually create the folders 'add-ons' and 'platforms' under android-sdk root, and then 'SDK Setup.exe' worked just fine.
Cheers!

Hi Gobian,

I am still having the issue. I have 'add-ons' and 'platforms' already under android-sdk root. But my SDK Setup.exe keeps disappearing. I am having windows 7 . Do any one know whats the issue.

Thanks,
Vikas
 
Upvote 0
Thank you very much bolhoso.I will try your solution !.. theoretically this should work.In my case until now I used a workaround.I Installed the SDK on a machine without proxy and I copied every file from that machine to my proxy protected computer.


I Tried the Squid as you advised.. for me in the AVD manager it keeps on loading...I've also tried the "test connection" option and it says it is available but cannot use on dowloading the contents. Is there any way i could get the platform-tools offline ?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones