Posted by Hemprasad Y. Badgujar on February 25, 2013
open Netbeans (any version greater then 5.0) ,Go to file–>>new project
select “Java” folder then select first option java Application ,Press next
Now give name to the project as you wish ,then un-check the “create main class” press next.
Now your project is been created as shown.
Go to library ,right click on it ,a menu will come ,click on “Add jars/Folders”
Now browse the cloudsim folder which you have extracted from zip file .and go to “cloudsim-2.1.1\jars” and select “cloudsim-2.1.1.jar” .
Now simply copy the “org” folder in “cloudsim-2.1.1\examples” and paste it to net beans source folder as shown.go to source and right click select paste.
To run the example go to source ->> org.cloudbus.cloudsim.examples->>select any example ,right click on it and select “run” option the output will be displayed in the output window at the bottom.
TO RUN EXAMPLE CODE FROM SOURCE CODE
Step 1,2,3,4 remain the same in step 5 copy and paste “org” folder from “cloudsim-2.1.1\source” and paste it into the source folder of your netbeans project as you copied the example folder.