Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayList Generic problem?

 
Andrew Mcmurray
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Andrew Mcmurray
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I'll give those a try and let you know.

AMD
 
Andrew Mcmurray
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks All changing the settings in Eclipse worked
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic