Subject: Syntax error, parameterized types are only available if source level is 5.0
Author: EricJ
Posted on: 11/29/2007 01:40:51 PM
Q: I'm using Eclipse IDE to run a piece of standard code but I keep getting error like this:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The type Map is not generic; it cannot be parameterized with arguments <String, SocketAddress>
Syntax error, parameterized types are only available if source level is 5.0
The type Queue is not generic; it cannot be parameterized with arguments <ServerSocketChannel>
Syntax error, parameterized types are only available if source level is 5.0
...
I've Java 5.0 installed, so what went wrong?
Replies:
References: