| Author |
Java 1.5 & IDE 3.2 with jms
|
Shyam Hai
Ranch Hand
Joined: Feb 04, 2009
Posts: 68
|
|
I changed the java version( 1.4 to 1.5) in Eclipse3.1.
After that i got one error in jms Queue.
Error : "The type Queue is ambiguous"
How to rectify this error.
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12929
|
|
The error messages means that there are two classes named Queue, and the compiler doesn't know which of the two you meant.
Look at the import statements in your source file. You're most likely importing the classes and interfaces of two packages which both have a class named Queue. Change the imports to that only the class Queue that you need is imported.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
Shyam Hai
Ranch Hand
Joined: Feb 04, 2009
Posts: 68
|
|
Thanks for replay.
But i already use this project with java1.4
Now i just update the version java1.5
After that only i got one error in jms Queue.
So i want do please..
|
 |
Shyam Hai
Ranch Hand
Joined: Feb 04, 2009
Posts: 68
|
|
i already use this project with java1.4
that time no problem its working fine .
when i change the version java1.5
After that only i got one error in jms Queue.
So what i want do please..
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8441
|
|
The java.util.Queue interface was added in 1.5.
That is why you are getting the conflict.
Like Jesper said, check your imports.
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Shyam Hai
Ranch Hand
Joined: Feb 04, 2009
Posts: 68
|
|
Maneesh Godbole
Thank you.........
Now its working fine.
|
 |
 |
|
|
subject: Java 1.5 & IDE 3.2 with jms
|
|
|