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.
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.