Where is the symbol MessageQueue defined? The compiler can not find a definition for it.
If it is a class, you probably need an import statement that tells the compiler what package it is in.