seems like your eclipse java version overrode the 1.5 ...if you want a
cleaner solution, try doing

$sudo apt-get install sun-java5-jdk



On Wed, Aug 12, 2009 at 11:41 PM, Abhinayak Mishra <abhina...@gmail.com>wrote:

> Though if you use use jave 1.6 instead of 1.5( Eclipse Java Compiler
> v_774_R33x, 3.3.1, Copyright
> IBM Corp 2000, 2007. All rights reserved....seems a bit iffy ), with this
> hack to make it compile, i would not expect to have any functional issues
> per say, but I might be wrong :).
>
> -Abhinayak
>
>
> On Wed, Aug 12, 2009 at 11:34 PM, Abhinayak Mishra <abhina...@gmail.com>wrote:
>
>> Simple hack to fix this would be to comment out the error instruction from
>> the make file build/core/main.mk, line 121. You probably will find it in
>> a couple of places in the make file.
>>
>> This would be just a hack to get you to compile, but what exactly are the
>> actual functional dependencies on the specific java version itself, i am not
>> sure.
>>
>> -Abhinayak
>>
>>
>>
>> On Wed, Aug 12, 2009 at 11:12 PM, krish24 <krish2...@gmail.com> wrote:
>>
>>>
>>>
>>> Hi all,
>>>
>>> We have ubuntu version 8.04 with JDK 6 (java version "1.6.0_10). We
>>> were using the ubuntu server for Android build and build was happening
>>> fine. In order to build latest release of Android, its been suggested
>>> to revert back to JDK 5(java 1.5). After uninstalling the JDK 6 and
>>> installing JDK 5.0, I am getting following 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.
>>> -----------------------------------
>>>
>>>
>>> When i gave javac -version command from commandline, it shows:
>>>
>>> Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright IBM Corp 2000,
>>> 2007. All rights reserved
>>>
>>> And when i gave java -version command from commandline, it shows:
>>>
>>> java version "1.5.0"
>>> gij (GNU libgcj) version 4.3.2
>>>
>>> Copyright (C) 2007 Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.  There
>>> is NO
>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>>> PURPOSE.
>>>
>>> Anyone knows how to fix this?
>>>
>>> Please suggest what else i need to do.
>>>
>>> Thanks,
>>> krish
>>>
>>>
>>> >>>
>>>
>>
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to