Sounds to me like your Android SDK is not in the build path... Have fun, Mihai
On Dec 10, 10:38 am, tharun <[EMAIL PROTECTED]> wrote: > Hi Fred, > > Now, I'm not facing the location error. > But one more error is occurring > > D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin>ant - > buildfile > C:\myAndroid\build.xml > Buildfile: C:\myAndroid\build.xml > > dirs: > [echo] Creating output directories if needed... > > resource-src: > [echo] Generating R.java / Manifest.java from the resources... > > aidl: > [echo] Compiling aidl files into Java classes... > > compile: > [javac] Compiling 2 source files to C:\myAndroid\bin\classes > > dex: > [echo] Converting compiled files and external libraries into bin/ > classes.de > x... > > package-res: > > package-res-no-assets: > [echo] Packaging resources... > > debug: > [echo] Packaging bin/HelloAndroid-debug.apk, and signing it with > a debug ke > y... > [exec] java.lang.NoClassDefFoundError: com/android/prefs/ > AndroidLocation$An > droidLocationException > [exec] Exception in thread "main" > > BUILD FAILED > > Exception error is occurring. > > How to resolve this? > > Regards, > Tharun > > On Dec 10, 1:39 am, "Fred Grott(shareme)" <[EMAIL PROTECTED]> > wrote: > > > Just install JDK in directory without spaces and than set JAVA HOME to > > that and the problem will go away > > > On Dec 9, 2:34 pm, "Fred Grott(shareme)" <[EMAIL PROTECTED]> wrote: > > > > Tharun install JDK in directory without spaces and tell ant to find > > > the tools.jar from that install..ie Ant should be launched from your > > > jdk install.. > > > > Its only a headache on windows :) > > > > On Dec 9, 6:49 am, "Tharun Kumar" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > I'm trying to build on Ant. But I'm stuck with a thing. When I try to > > > > run ant, I'm getting following error note on command prompt. > > > > > I've copied the build.xml inside java folder. > > > > > D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin>ant > > > > Unable to locate tools.jar. Expected to find it in C:\Program > > > > Files\Java\jre1.6. > > > > 0_02\lib\tools.jar > > > > Buildfile: build.xml does not exist! > > > > Build failed > > > > > Prior to this, I've set JAVA_HOME environment variable. > > > > > Which is the right path to copy the build.xml? > > > > > Can you someone help on this? > > > > > Regards, > > > > Tharun- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---