Could you run the following and make sure the correct JDK is in use? java -version javac -version
Nick On Jan 7, 10:02 am, Anil <[email protected]> wrote: > Nick, > Thanks for replying. It seems to be using the sun jvm. > > a...@anil-laptop:~/mydroid$ sudo update-alternatives --config java > > There is only 1 program which provides java > (/usr/lib/jvm/java-6-sun/jre/bin/java). Nothing to configure. > a...@anil-laptop:~/mydroid$ sudo update-alternatives --config javac > > There is only 1 program which provides javac > (/usr/lib/jvm/java-6-sun/bin/javac). Nothing to configure. > a...@anil-laptop:~/mydroid$ sudo update-alternatives --config javadoc > > There is only 1 program which provides javadoc > (/usr/lib/jvm/java-6-sun/bin/javadoc). Nothing to configure. > > On Jan 7, 11:56 am, Nick Messick <[email protected]> wrote: > > > Anil, > > > On thing you can try is to be sure you are using the Sun JDK for all > > three Java components: java, javac, javadoc > > > In Ubuntu you can check by running these commands: > > > sudo update-alternatives –config java > > sudo update-alternatives –config javac > > sudo update-alternatives –config javadoc > > > I had issues doing builds because while I was using the Sun JDK for > > "java", the "javac" and "javadoc' were still set to use the GCJ. > > > Nick > > > On Jan 7, 8:57 am, Anil <[email protected]> wrote: > > > > ...and it is using the Sun JVM > > > > a...@anil-laptop:~/mydroid$ java -version > > > java version "1.6.0_10" > > > Java(TM) SE Runtime Environment (build 1.6.0_10-b33) > > > Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing) > > > > On Jan 7, 10:36 am, Anil <[email protected]> wrote: > > > > > I got this error with make sdk. > > > > > a...@anil-laptop:~/mydroid$ make sdk > > > > build/core/product_config.mk:207: WARNING: adding test OTA key > > > > ============================================ > > > > TARGET_PRODUCT=generic > > > > TARGET_BUILD_VARIANT=eng > > > > TARGET_SIMULATOR= > > > > TARGET_BUILD_TYPE=release > > > > TARGET_ARCH=arm > > > > HOST_ARCH=x86 > > > > HOST_OS=linux > > > > HOST_BUILD_TYPE=release > > > > BUILD_ID= > > > > ============================================ > > > > Combining NOTICE files: out/target/product/generic/obj/NOTICE.txt > > > > Finding NOTICE files: out/host/linux-x86/obj/NOTICE_FILES/hash- > > > > timestamp > > > > Combining NOTICE files: out/host/linux-x86/obj/NOTICE.txt > > > > Package: out/target/product/generic/generic-img-eng.anil.zip > > > > SDK buildinfo: out/target/product/generic/sdk/sdk-build.prop > > > > Docs droiddoc: out/target/common/docs/dx > > > > javadoc: error - In doclet class DroidDoc, method start has thrown an > > > > exception java.lang.reflect.InvocationTargetException > > > > com.sun.tools.javac.code.Symbol$CompletionFailure: class file for > > > > sun.util.resources.OpenListResourceBundle not found > > > > 1 error > > > > make: *** [out/target/common/docs/dx-timestamp] Error 45 > > > > a...@anil-laptop:~/mydroid$ > > > > > On Jan 5, 10:17 pm, Anil <[email protected]> wrote: > > > > > > On Jan 5, 6:37 pm, Xavier Ducrohet <[email protected]> wrote: > > > > > > Xavier, thanks for replying... > > > > > > > Both Activity Creator and ADT are designed to work with an SDK. > > > > > > I wish the documentation would contain this. (I would have saved a few > > > > > hours :). > > > > > > > You could build an SDK (make sdk) to create/build your project > > > > > > (using > > > > > > Ant or ADT). > > > > > > > Then, when you connect your debugger to your running application, > > > > > > you > > > > > > can configure it to go look for the source code both in your project > > > > > > folder and in the android tree (I would start by pointing it at > > > > > > frameworks/base/core/java/). > > > > > > > This will probably require to do a manual connection with DDMS > > > > > > (instead of using the launch configuration from ADT). > > > > > > The last part is not clear to me - if I make an SDK, then do I still > > > > > need to connect manually? > > > > > thanks, > > > > > Anil > > > > > > > Xav > > > > > > > On Mon, Jan 5, 2009 at 2:40 PM, Anil <[email protected]> wrote: > > > > > > > > I want to run HelloAndroid in the Eclipse debugger, stepping > > > > > > > through > > > > > > > the platform code to understand what happens under the covers. > > > > > > > (I have downloaded and built the android source on ubuntu 8.10, > > > > > > > built > > > > > > > it, and done the eclipse setup steps at source.android.com). > > > > > > > > Some things are not clear to me. > > > > > > > should one use the ADT plugin, or activitycreator.py? > > > > > > > 1) Can you install ADTplugin - what would you list as the SDK > > > > > > > location, given the android source root? > > > > > > > 2) activitycreator.py does not exist in the source, only > > > > > > > activitycreator script, which is in > > > > > > > ~/mydroid/out/host/linux-x86/bin > > > > > > > > -------activitycreator > > > > > > > TOOLS_DIR=`dirname $0` > > > > > > > AC_JARFILE=$TOOLS_DIR/lib/activitycreator.jar > > > > > > > > java -Dcom.android.activitycreator.toolsdir=$TOOLS_DIR -cp > > > > > > > $AC_JARFILE > > > > > > > com.android.activitycreator.ActivityCreator "$@" > > > > > > > ---------------- > > > > > > > > However, the script assumes that activitycreator.jar is in the > > > > > > > tools/ > > > > > > > lib dir which is false. It is in > > > > > > > ~/mydroid/out/host/linux-x86/framework > > > > > > > > so running it gives a java.lang.ClassNotFoundException: > > > > > > > com.android.activitycreator.ActivityCreator > > > > > > > > modifying the script to read > > > > > > > > TOOLS_DIR=$HOME/mydroid/out/host/linux-x86/bin > > > > > > > AC_JARFILE=$TOOLS_DIR/../framework/activitycreator.jar > > > > > > > > I now get this error: > > > > > > > ERROR: Target platform templates directory does not exist. > > > > > > > > 3) If you simply add the src dir as in Add Source in "Adding apps > > > > > > > to > > > > > > > the build path" (http://source.android.com/using-eclipse) > > > > > > > then what about the resource files? > > > > > > > > 4) Building: Does one run ant outside Eclipse, on the command > > > > > > > line, to > > > > > > > build HelloAndroid? > > > > > > > 5) Debugging/Stepping through HelloAndroid or any of the samples > > > > > > > under > > > > > > > ~mydroid/developent/: Clicking Debug on Android Source brings up a > > > > > > > list of classes (perhaps it found main() in them), but not the > > > > > > > samples. > > > > > > > > Any help appreciated. > > > > > > > thanks, > > > > > > > Anil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
