You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Rhino <rh...@sympatico.ca> on 2012/03/28 19:27:03 UTC

Compiler Versionl question

I'm getting several messages like this when doing an javac task using 
Ant 1.8.2 in Eclipse 3.7. I'm running on Windows XP SP3 and my source 
value is set to 1.6.

  [javac] warning: c:\eclipse\workspace\Foo\bin\com\example\Foo.class: 
major version 51 is newer than 50, the highest major version supported 
by this compiler.
        [javac] It is recommended that the compiler be upgraded.

Am I right in believing that I need to upgrade the Ant version in 
Eclipse to resolve this problem? If that's not the correct resolution, 
what should I do? I tried changing the source value to 1.7 but that 
didn't work.

I haven't done much with Ant in the last year or two so my memory is a 
bit foggy on how to handle this issue....
--
Rhino

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Compiler Versionl question

Posted by Rhino <rh...@sympatico.ca>.
As it turned out, I was simply pointing to a 1.6 JDK but was trying to 
use some 1.7 features. I pointed at a 1.7 JDK and now the message has 
gone away.

I figured this out not too long after posting the question but forgot to 
mention it on the mailing list.

Thanks for your reply!

--
Rhino

On 2012-03-28 13:31, Joe Attardi wrote:
> What version of the JDK are you running? Sounds like you may need to update
> your JDK.
> On Mar 28, 2012 1:27 PM, "Rhino"<rh...@sympatico.ca>  wrote:
>
>> I'm getting several messages like this when doing an javac task using Ant
>> 1.8.2 in Eclipse 3.7. I'm running on Windows XP SP3 and my source value is
>> set to 1.6.
>>
>>   [javac] warning: c:\eclipse\workspace\Foo\bin\**com\example\Foo.class:
>> major version 51 is newer than 50, the highest major version supported by
>> this compiler.
>>        [javac] It is recommended that the compiler be upgraded.
>>
>> Am I right in believing that I need to upgrade the Ant version in Eclipse
>> to resolve this problem? If that's not the correct resolution, what should
>> I do? I tried changing the source value to 1.7 but that didn't work.
>>
>> I haven't done much with Ant in the last year or two so my memory is a bit
>> foggy on how to handle this issue....
>> --
>> Rhino
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.**org<us...@ant.apache.org>
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Compiler Versionl question

Posted by Joe Attardi <jo...@attardi.net>.
What version of the JDK are you running? Sounds like you may need to update
your JDK.
On Mar 28, 2012 1:27 PM, "Rhino" <rh...@sympatico.ca> wrote:

> I'm getting several messages like this when doing an javac task using Ant
> 1.8.2 in Eclipse 3.7. I'm running on Windows XP SP3 and my source value is
> set to 1.6.
>
>  [javac] warning: c:\eclipse\workspace\Foo\bin\**com\example\Foo.class:
> major version 51 is newer than 50, the highest major version supported by
> this compiler.
>       [javac] It is recommended that the compiler be upgraded.
>
> Am I right in believing that I need to upgrade the Ant version in Eclipse
> to resolve this problem? If that's not the correct resolution, what should
> I do? I tried changing the source value to 1.7 but that didn't work.
>
> I haven't done much with Ant in the last year or two so my memory is a bit
> foggy on how to handle this issue....
> --
> Rhino
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.**org<us...@ant.apache.org>
> For additional commands, e-mail: user-help@ant.apache.org
>
>

AW: Compiler Versionl question

Posted by Knuplesch, Jürgen <Ju...@icongmbh.de>.
In the run configuration in Eclipse you need to check and probably adapt the Java version.

You can use several Java VMs together witzh Eclipse, so you need to configure which one to use together with your ANT job.
By default the default JRE from Eclipse is used.

-----Ursprüngliche Nachricht-----
Von: Rhino [mailto:rhino1@sympatico.ca] 
Gesendet: Mittwoch, 28. März 2012 19:27
An: ant-user
Betreff: Compiler Versionl question

I'm getting several messages like this when doing an javac task using Ant 1.8.2 in Eclipse 3.7. I'm running on Windows XP SP3 and my source value is set to 1.6.

  [javac] warning: c:\eclipse\workspace\Foo\bin\com\example\Foo.class: 
major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.

Am I right in believing that I need to upgrade the Ant version in Eclipse to resolve this problem? If that's not the correct resolution, what should I do? I tried changing the source value to 1.7 but that didn't work.

I haven't done much with Ant in the last year or two so my memory is a bit foggy on how to handle this issue....
--
Rhino

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org