Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » try source 1.5 error
try source 1.5 error [message #222729] Fri, 20 January 2006 13:02 Go to next message
Eclipse UserFriend
My new company uses NetBeans with JDK 1.5 but I would prefer to use
Eclipse with the MyEclipse plug-in. There are "1.5" for-each loops and
generics that I can't get to compile with Eclipse. I'm using Eclipse
Version 3.1.1, have my Java compiler compliance level set to 5.0 and
default installed JRE pointing to JRE 1.5.0_02. When I compile I get
things such as:
[javac] C:\eclipse\antprj\src\antxch\EmailExportSuccessful.java:90:
generics are not supported in -source 1.4
[javac] (try -source 1.5 to enable generics)
[javac] Iterator<String> filenames =
Ant.getFileNameIterator(exportlist);

Did I forget to do something in eclipse? There seemed to be a lot of
posts about 1.5 support but most said Eclipse 3.1 should work.

Thanks for your help.
Jennifer
Re: try source 1.5 error [message #222740 is a reply to message #222729] Fri, 20 January 2006 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Jennifer J wrote:
> My new company uses NetBeans with JDK 1.5 but I would prefer to use
> Eclipse with the MyEclipse plug-in. There are "1.5" for-each loops and
> generics that I can't get to compile with Eclipse. I'm using Eclipse
> Version 3.1.1, have my Java compiler compliance level set to 5.0 and
> default installed JRE pointing to JRE 1.5.0_02. When I compile I get
> things such as:
> [javac] C:\eclipse\antprj\src\antxch\EmailExportSuccessful.java:90:
> generics are not supported in -source 1.4
> [javac] (try -source 1.5 to enable generics)
> [javac] Iterator<String> filenames =
> Ant.getFileNameIterator(exportlist);
>
> Did I forget to do something in eclipse? There seemed to be a lot of
> posts about 1.5 support but most said Eclipse 3.1 should work.

Something is not clear: your messages indicate usage of javac (looks
like from an Ant build), but Eclipse does not use javac.
Please describe your usage scenario that results in these warnings.

Eric
Re: try source 1.5 error [message #222746 is a reply to message #222729] Fri, 20 January 2006 15:21 Go to previous messageGo to next message
Eclipse UserFriend
They look like ant logs ... does your build.xml have a source="1.5"
anywhere in it?

Later,
PW
Re: try source 1.5 error [message #222754 is a reply to message #222746] Fri, 20 January 2006 15:28 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, I should have explained that I set up eclipse to use my build.xml
file to do the build. I guess I need to change the source="1.5" in the
build.xml file? Thanks.
Jennifer

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:dqrgop$h57$1@utils.eclipse.org...
> They look like ant logs ... does your build.xml have a source="1.5"
> anywhere in it?
>
> Later,
> PW
Re: try source 1.5 error [message #222854 is a reply to message #222754] Mon, 23 January 2006 10:15 Go to previous message
Eclipse UserFriend
Jennifer J wrote:
> Sorry, I should have explained that I set up eclipse to use my build.xml
> file to do the build. I guess I need to change the source="1.5" in the
> build.xml file? Thanks.

yes
Previous Topic:"Problems" item won't go away
Next Topic:IllegalAccessError while trying to compile with org.eclipse.jdt.internal.compiler.batch.Main...
Goto Forum:
  


Current Time: Sat Nov 08 21:01:27 EST 2025

Powered by FUDForum. Page generated in 0.24369 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top