This is one of the case where you may think that you are declaring a queue correctly and it keep on throwing this Exception. You might have checked JRE version, java client but all seems to be Okay.
Then what is the issue here?
The problem here is with the class name.Here when you are declaring queue it is not referring the queue in java.util package rather it is assuming that you are going to create and object of same class.
So just change the name of class and the error should go away.