Home » Newcomers » Newcomers » Welcome to eclipse.newcomer 
 |   |   |   |   |   |   |   |   |   |   |  
| Re: Problem with Enum [message #215087 is a reply to message #215079] | 
Mon, 11 June 2007 19:33    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Mark Priest wrote: 
> Hi, 
>  
> I am having a problem getting Eclipse to allow me to create enums. 
> Every time I create an enum in my project I get the following error: 
>  
> The type Comparable is not generic; it cannot be parameterized with 
> arguments <E> 
>  
> The enum I am trying to create is: 
>  
> public enum TestEnum { 
>      
>     Val1, 
>     Val2; 
>  
> } 
>  
> I am running Eclipse version 3.2.2 on Ubuntu Linux (Build id: 
> M20070212-1330 (Ubuntu version: 3.2.2-0ubuntu3) 
>  
> I am running the following 1.5 JDK: 
> java version "1.5.0_11" 
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) 
> Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing) 
>  
> In my project settings I have set the compiler compliance set to 5.0 
> with default compliance settings. 
>  
> Any ideas why this is happening? 
>  
> Thanks, 
> Mark 
>  
Hi. I just tried it here. Is your outer class also called TestEnum? If  
so, perhaps that is the problem. Try changing the name of your enum, e.g., 
 
public class TestEnum { 
	 
	public enum Day { 
	    SUNDAY, MONDAY, TUESDAY, WEDNESDAY, 
	    THURSDAY, FRIDAY, SATURDAY 
	} 
 
	public enum Test { 
		VALUE1, VALUE2 
	} 
 
} 
 
Hope this helps. Mark Dexter
 |  
 |  
  |  
| Re: Problem with Enum [message #215096 is a reply to message #215087] | 
Mon, 11 June 2007 19:45    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: mark.priest.computer.org 
 
On Mon, 2007-06-11 at 16:33 -0700, Mark Dexter wrote: 
> Mark Priest wrote: 
> > Hi, 
> >  
> > I am having a problem getting Eclipse to allow me to create enums. 
> > Every time I create an enum in my project I get the following error: 
> >  
> > The type Comparable is not generic; it cannot be parameterized with 
> > arguments <E> 
> >  
> > The enum I am trying to create is: 
> >  
> > public enum TestEnum { 
> >      
> >     Val1, 
> >     Val2; 
> >  
> > } 
> >  
> > I am running Eclipse version 3.2.2 on Ubuntu Linux (Build id: 
> > M20070212-1330 (Ubuntu version: 3.2.2-0ubuntu3) 
> >  
> > I am running the following 1.5 JDK: 
> > java version "1.5.0_11" 
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) 
> > Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing) 
> >  
> > In my project settings I have set the compiler compliance set to 5.0 
> > with default compliance settings. 
> >  
> > Any ideas why this is happening? 
> >  
> > Thanks, 
> > Mark 
> >  
> Hi. I just tried it here. Is your outer class also called TestEnum? If  
> so, perhaps that is the problem. Try changing the name of your enum, e.g., 
>  
> public class TestEnum { 
> 	 
> 	public enum Day { 
> 	    SUNDAY, MONDAY, TUESDAY, WEDNESDAY, 
> 	    THURSDAY, FRIDAY, SATURDAY 
> 	} 
>  
> 	public enum Test { 
> 		VALUE1, VALUE2 
> 	} 
>  
> } 
>  
> Hope this helps. Mark Dexter 
 
Mark, 
 
In my example there is no outer class.  I am trying to create a 
free-standing(?) enum.  In any case your example gives me the same error 
message.   
 
It seems like some sort of JDK 1.5 compliance issue.  Maybe I am not 
setting my Eclipse settings correctly.  I just don't see the problem. 
 
Thanks, 
Mark
 |  
 |  
  |  
| Re: Problem with Enum [message #215103 is a reply to message #215096] | 
Mon, 11 June 2007 20:10    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: mark.priest.computer.org 
 
On Mon, 2007-06-11 at 19:45 -0400, Mark Priest wrote: 
> On Mon, 2007-06-11 at 16:33 -0700, Mark Dexter wrote: 
> > Mark Priest wrote: 
> > > Hi, 
> > >  
> > > I am having a problem getting Eclipse to allow me to create enums. 
> > > Every time I create an enum in my project I get the following error: 
> > >  
> > > The type Comparable is not generic; it cannot be parameterized with 
> > > arguments <E> 
> > >  
> > > The enum I am trying to create is: 
> > >  
> > > public enum TestEnum { 
> > >      
> > >     Val1, 
> > >     Val2; 
> > >  
> > > } 
> > >  
> > > I am running Eclipse version 3.2.2 on Ubuntu Linux (Build id: 
> > > M20070212-1330 (Ubuntu version: 3.2.2-0ubuntu3) 
> > >  
> > > I am running the following 1.5 JDK: 
> > > java version "1.5.0_11" 
> > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) 
> > > Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing) 
> > >  
> > > In my project settings I have set the compiler compliance set to 5.0 
> > > with default compliance settings. 
> > >  
> > > Any ideas why this is happening? 
> > >  
> > > Thanks, 
> > > Mark 
> > >  
> > Hi. I just tried it here. Is your outer class also called TestEnum? If  
> > so, perhaps that is the problem. Try changing the name of your enum, e.g., 
> >  
> > public class TestEnum { 
> > 	 
> > 	public enum Day { 
> > 	    SUNDAY, MONDAY, TUESDAY, WEDNESDAY, 
> > 	    THURSDAY, FRIDAY, SATURDAY 
> > 	} 
> >  
> > 	public enum Test { 
> > 		VALUE1, VALUE2 
> > 	} 
> >  
> > } 
> >  
> > Hope this helps. Mark Dexter 
>  
> Mark, 
>  
> In my example there is no outer class.  I am trying to create a 
> free-standing(?) enum.  In any case your example gives me the same error 
> message.   
>  
> It seems like some sort of JDK 1.5 compliance issue.  Maybe I am not 
> setting my Eclipse settings correctly.  I just don't see the problem. 
>  
> Thanks, 
> Mark 
>  
 
Ok this is user error.  It turns out I had a jar file with core JDK 
lasses from JDK 1.4 in the classpath.  Sorry about that!  Now my problem 
is gone. 
 
Thanks, 
Mark
 |  
 |  
  |  
| Re: Welcome to eclipse.newcomer [message #646524 is a reply to message #2132] | 
Tue, 28 December 2010 01:35   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
On 1/14/2005 3:02 AM, WebMaster wrote: 
> New to Eclipse? Ask questions regarding downloading, installing and 
> getting started with Eclipse in this newsgroup. 
> 
> 
Hi There, 
 
I am Sandeep Motwani from India. 
 
I have started using EPF for process authoring and have a doubt I would  
like to clarify with you guys. 
Don't know whom I should write this mail, but would request you to help  
me with it or guide me to the correct person. 
 
The situation is as follows- 
I want to move plug-in 1 from library A to Library B. 
1. Is it possible to do such a movement? 
2. If yes, how do I do it? 
 
Thank you very much in advance. 
 
Regards, 
Sandeep
 |  
 |  
  |   
Goto Forum:
 
 Current Time: Mon Nov 03 22:53:27 EST 2025 
 Powered by  FUDForum. Page generated in 0.08936 seconds  
 |