This sample shows how to run Contiki NG, a network simulator. First, make sure you have Contiki NG installed. Ensure the right Java virtual machine is installed along with Ant, the right environment variables are set, and the Cooja submodule is downloaded. Go to the Cooja directory, build and start it with ant.
Go to contiki-ng/tools/cooja in terminal
Then give command ant
Go to File option select New Simulation
Create new simulation
Then go to mote option select add motes and give create new mote type and select cooja mote.
Select any file for simulation then give clean and compile.
Select create option
Now add motes and positioning.
Now the nodes are deployed in the network area.