You can install java 1.5 and java 1.6 on your system. Setup an
environment variable which supports the selection of the Java version
which you want to use. If you do development on the SDK/platform
switch to 1.5, for app development switch to 1.6.

For example on my MAC I find the 1.6 bin in

  /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/

and 1.5 in

  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/

Make sure that you also set your build path accordingly!

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 14, 8:07 am, Anand <[email protected]> wrote:
> Hi All,
>
> I also faced the same issue, however below command worked for me. My
> box is Ubuntu 8.04.
>
> $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf
> libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
> libncurses5-dev zlib1g-dev
>
> $ sudo update-java-alternatives -s java-1.5.0-sun
>
> Thanks
> Anand
>
> On Aug 12, 11:09 pm, "Yusuf Saib (T-Mobile USA)" <yusuf.s...@t-
>
> Mobile.com> wrote:
> > As you probably already know, you don't need to build the Android
> > source to develop apps, you just need to install the prebuilt SDK. You
> > should post Android platform building questions to the android-
> > platform mailing list. And I should not answer them here either, but
> > here goes anyway:
>
> > You may be attempting to build Android platform source from within
> > Eclipse; I would recommend building it from the command line. If (as
> > Fred suggested) your java version is not 1.5 even though you installed
> > it, then you need to set the path to point to the right version.
>
> > Yusuf Saib
> > Android
> > ·T· · ·Mobile· stick together
> > The views, opinions and statements in this email are those of the
> > author solely in their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
>
> > On Aug 12, 8:18 am, "Fred Grott(shareme)" <[email protected]>
> > wrote:
>
> > > n command line what does java -version command produce?
>
> > > On Aug 12, 8:07 am, Vinu <[email protected]> wrote:
>
> > > > Hello,
>
> > > > I am trying to compile the Latest android & i got the below errors,
>
> > > > ************************************************************
> > > > You are attempting to build with the incorrect version
> > > > of java.
>
> > > > Your version is: java version "1.6.0_10".
> > > > The correct version is: 1.5.
>
> > > > Please follow the machine setup instructions at
> > > >    http://source.android.com/download
> > > > ************************************************************
> > > > build/core/main.mk:105: *** stop.  Stop.
> > > > -----------------------------------
>
> > > > then i upgraded to java Version 1.5.
>
> > > > After this upgradation ,When i tried building, i got the below error,
>
> > > > ************************************************************
> > > > You are attempting to build with the incorrect version
> > > > of javac.
>
> > > > Your version is: Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright
> > > > IBM Corp 2000, 2007. All rights reserved..
> > > > The correct version is: 1.5.
>
> > > > Please follow the machine setup instructions at
> > > >    http://source.android.com/download
> > > > ************************************************************
> > > > build/core/main.mk:121: *** stop.  Stop.
> > > > -----------------------------------
>
> > > > Please let me know which javac version or Eclipse Java Compiler , i
> > > > need to install .
>
> > > > Thanks in Advance
> > > > Vinay- 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 [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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to