Friday 24 January 2014

Cloud Simulation using netbeans and java

Step1
open Netbeans (any version greater then 5.0) ,Go to  file-->>new project
   
Step 2


 select "Java" folder then select first option java Application ,Press next


Step3
Now give name to the project as you wish ,then un-check the "create main class" press next.

                                                                               Step 4
Now your project is been created as shown.
Step5

 Go to library ,right click on it ,a menu will come ,click on "Add jars/Folders"
                                                                          Step6
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" .
Step 7
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.
Step 8
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.