views:

1091

answers:

1

Hi

I am using Blackberry plug in for eclipse. Default jre setting is 1.6 I am getting following error which doesnt allow me to compile my .java file :

The type Class is not generic; it cannot be parameterized with arguments

Please help.

+3  A: 

Classes for J2ME projects must be compiled to be version 1.3 compliant. => no generics, enums, extended-for .....

But it should fix your problem :)

Philipp
I commented the enum statement in my class and the error disappeared ...I need to use enums in the java file.Any suggestion?
imMobile
You can do it the old fashioned way and use constant values :)
Philipp
Do enums and generics work on real device?
imMobile
No. JavaME uses an old version of the Java language that predates enums and generics. You simply can't use them at all.
izb