Twitter: @mayankcloud CLOUD COMPUTING @ www.mayankagr.in Twitter: @mayankcloud
Working with CloudSim Download JDK from the following link. http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=ocomcn
Working with CloudSim Download Eclipse from following link and extract to convenient location. http://www.eclipse.org/downloads/
Working with CloudSim Download CloudSim and extract to any location. https://code.google.com/p/cloudsim/downloads/list
Working with CloudSim You may encounter a problem while running Eclipse , if Java is not installed on your System or if the configuration of the Eclipse and Java installed don’t match.
Working with CloudSim Open Eclipse IDE from the location and choose a workspace.
Working with CloudSim Click new -> Click Java Project
Working with CloudSim • Write the Project Name. • Uncheck the Use Default Location. • Browse and target it to where you extracted the CloudSim-3.0.3 • On JRE Select JavaSE-1.6 or JavaSE-1.7( Only 1.6 and higher are supported) • Click Next
Working with CloudSim Download - commons-math3-3.2-bin.zip & commons-lang3-3.1-bin.zip from http://commons.apache.org/proper/commons-math/download_math.cgi http://commons.apache.org/proper/commons-lang/download_lang.cgi Add the above jar files to the referenced libraries folder in CloudSim project.
Working with CloudSim Say csim is your project. Right click on Referenced lib. Click on build path and then click on configure build path.
Working with CloudSim Click on Add External JARs…
Working with CloudSim Add math jar files from extracted folder of commons-math3-3.2
Working with CloudSim Error : main () thread 1.5 or higher Right Click Project > Properties > Java Compiler > Enable Project Specific Settings > Choose 1.6 or Higher Error : Can’t build class path Open the cloud sim folder > View Hidden Files > Delete .classpath file
Working with CloudSim An Error may occur while running ECLIPSE(see image). To overcome this error you must set path of Java in the environment Variable.
Working with CloudSim Simulation Examples Project(csim)->examples-> Org.cloudbus.cloudsim. examples Package.
Working with CloudSim CloudSimExample1.java : shows how to create a datacentre with one host and run one cloudlet on it. Run CloudSimExample1.java
Working with CloudSim Output of CloudSimExample1.java
Working with CloudSim CloudSimExample2.java : shows how to create a datacentre with one host and run two cloudlets on it. Run CloudSimExample2.java
Working with CloudSim Output of CloudSimExample2.java
Thanks……!!