Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.Cloudslab:cloudsim:7.0-pre'
}
dependencies {
implementation("com.github.Cloudslab:cloudsim:7.0-pre")
}
<dependency>
<groupId>com.github.Cloudslab</groupId>
<artifactId>cloudsim</artifactId>
<version>7.0-pre</version>
</dependency>
libraryDependencies += "com.github.Cloudslab" % "cloudsim" % "7.0-pre"
:dependencies [[com.github.Cloudslab/cloudsim "7.0-pre"]]
Cloud Computing is the leading approach for delivering reliable, secure, fault-tolerant, sustainable, and scalable computational services. Hence timely, repeatable, and controllable methodologies for performance evaluation of new cloud applications and policies before their actual development are required. Because utilization of real testbeds limits the experiments to the scale of the testbed and makes the reproduction of results an extremely difficult undertaking, simulation may be used.
CloudSim's goal is to provide a generalized and extensible simulation framework that enables modeling, simulation, and experimentation of emerging Cloud Computing infrastructures and application services, allowing its users to focus on specific system design issues that they want to investigate, without getting concerned about the low level details related to Cloud-Based infrastructures and services.
CloudSim is developed in the Cloud Computing and Distributed Systems (CLOUDS) Laboratory, at the Computer Science and Software Engineering Department of the University of Melbourne.
More information can be found on the CloudSim's web site.
Either clone the repository or download a release. The release package contains all the source code, examples, jars, and API html files.
Windows 1) Install Java JDK21 on your system from the official website as shown in JDK installation instructions 2) Install Maven as shown on the official website 4) Compile and Run tests using the command prompt:
mvn clean package
5) Run an example (e.g., CloudSimExample1) in cloudsim-examples using the command prompt:
mvn exec:java -pl modules/cloudsim-examples/ -Dexec.mainClass=org.cloudbus.cloudsim.examples.CloudSimExample1
Linux 1) Install Java JDK21 on your system:
On Debian-based Linux & Windows WSL2:
sudo apt install openjdk-21-jdk
On Red Hat-based Linux:
sudo yum install java-21-openjdk
2) Set Java JDK21 as default:
On Debian-based Linux & Windows WSL2:
sudo update-java-alternatives --set java-1.21.0-openjdk-amd64
On Red Hat-based Linux:
sudo update-alternatives --config 'java'
3) Install Maven as shown on the Official Website 4) Compile and run tests using the terminal:
mvn clean package
5) Run an example (e.g., CloudSimExample1) in cloudsim-examples using the terminal:
mvn exec:java -pl modules/cloudsim-examples/ -Dexec.mainClass=org.cloudbus.cloudsim.examples.CloudSimExample1
Suggestion: Use an IDE such as IDEA Intellij to faciliate steps 4) and 5)