procedure of creating queues and topic

hi, can any body tell me how to create connection factory,intital context , how to create a queue all from command line i have read the pdf but i am unable to do it so please explain me how to do it what are the steps that i need to do means hierarchy of creating the objects