Your error message basically means you have not configured your Context's environemnt properly. Have a read though the JNDI tutorial to learn the basics. Check the MQSeries documentation fo the corret values to use.
BTW, You don't need to get your MQ connections from JNDI if you are reading from a simple java program without App Server, you can access like this in a very simple way.
MQEnvironment.hostname = "HOST_NAME"; // host to connect to MQEnvironment.port = 1414; //Input your port MQEnvironment.channel = "CHANNEL_NAME"; // Case Sensitive MQQueueManager qMgr = new MQQueueManager("MYQMGR");
//Replace with the required option int openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT ;