When you have started the QM1 queue manager, you can create a local queue called Q1:
mqe_script_appq -create -qname Q1
This command creates a basic local queue (also know as application queues) called Q1, on the QM1 queue manager.
For more information on using Java or C to create a local queue, see Configuring local queues. For examples in Java™ and C, see Java and C.