Home » Newcomers » Newcomers » Welcome to eclipse.newcomer
| | | | | | |
Re: Welcome to eclipse.newcomer [message #199559 is a reply to message #185557] |
Wed, 14 March 2007 23:04 |
Eclipse User |
|
|
|
Originally posted by: bogdanciprian.yahoo.com
ftom wrote:
> Ali H wrote:
>> "pueblo" <akoudri@free.fr> wrote in message
>> news:eegr9v$59s$1@utils.eclipse.org...
>>> epson wang wrote:
>>>> Hello everyone only a test message
>>>>
>>> Hi,
>>> I 'll just answer with a test message too.
>>> Cheers.
>>
>> Hi everybody,
>> Here you can see my test message.
>> Wishes.
>>
>
> Just a test.
>
> Happy Holidays!
hello world,
just testing
|
|
|
Re: Welcome to eclipse.newcomer [message #199566 is a reply to message #185557] |
Wed, 14 March 2007 23:07 |
Eclipse User |
|
|
|
Originally posted by: bogdanciprian.yahoo.com
another test
ftom wrote:
> Ali H wrote:
>> "pueblo" <akoudri@free.fr> wrote in message
>> news:eegr9v$59s$1@utils.eclipse.org...
>>> epson wang wrote:
>>>> Hello everyone only a test message
>>>>
>>> Hi,
>>> I 'll just answer with a test message too.
>>> Cheers.
>>
>> Hi everybody,
>> Here you can see my test message.
>> Wishes.
>>
>
> Just a test.
>
> Happy Holidays!
|
|
| |
Problem with Enum [message #215079 is a reply to message #2132] |
Mon, 11 June 2007 23:22 |
Eclipse User |
|
|
|
Originally posted by: mark.priest.computer.org
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
|
|
|
Re: Problem with Enum [message #215087 is a reply to message #215079] |
Mon, 11 June 2007 23:33 |
Mark Dexter Messages: 324 Registered: July 2009 |
Senior Member |
|
|
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 23: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] |
Tue, 12 June 2007 00: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
|
|
| |
Goto Forum:
Current Time: Wed Jan 15 11:07:40 GMT 2025
Powered by FUDForum. Page generated in 0.04868 seconds
|