GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes ArrayList Generic problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ArrayList Generic problem?" Watch "ArrayList Generic problem?" New topic
Author

ArrayList Generic problem?

Andrew Mcmurray
Ranch Hand

Joined: Sep 24, 2005
Posts: 188
Hi all

I am trying to compile this in Eclipse 3.1


Eclipse is saying parameterized types are only availble if source level is 5.0. I downloaded jdk 1.5.0_06 and put it on my path. Am I missing something else?

Thanks,

AMD
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
I think Eclipse uses its own version of a compiler. You should check the documentation to see how to specify that you want use 1.5
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

There are some Eclipse settings you might need to change. Under Preferences > Java > Compiler, make sure that the JDK Compliance settings are all at 5.0.

Let us know if this fixes the problem.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Andrew Mcmurray
Ranch Hand

Joined: Sep 24, 2005
Posts: 188
Thanks I'll give those a try and let you know.

AMD
Andrew Mcmurray
Ranch Hand

Joined: Sep 24, 2005
Posts: 188
Thanks All changing the settings in Eclipse worked
 
GeeCON Prague 2014
 
subject: ArrayList Generic problem?