cloudsim icon indicating copy to clipboard operation
cloudsim copied to clipboard

Jar version

Open CT702-7 opened this issue 3 years ago • 1 comments

Thank you for your work in maintaining cloudsim, but could you please provide a jar version for cloudsim-6.0?

CT702-7 avatar Sep 27 '22 12:09 CT702-7

Well this is a very late response, sorry about that! Anyway, that's how I was able to build CloudSim 6.0

  1. Download release: https://github.com/Cloudslab/cloudsim/releases/tag/6.0-pre
  2. Download Java 17 (e.g. apt install openjdk-17-jdk openjdk-17-jre)
  3. Locate the installation path (e.g. update-java-alternatives --list)
  4. Create gradle.properties file in cloudsim-6.0-pre root folder and write: org.gradle.java.home=*paste installation path here!!!*
  5. Init gradle (e.g. ./gradlew init)
  6. Build CloudSim (e.g. ./gradlew build)
  7. The result are the following jar files: ./modules/cloudsim/build/libs/cloudsim-5.1.jar ./modules/cloudsim-examples/build/libs/cloudsim-examples-5.1.jar (Yes it's 5.1, I believe they forgot to update the cloudsim version in buildSrc/src/main/groovy/org.cloudbus.cloudsim.java-conventions.gradle)
  8. Follow the guide at documentation/src/main/resources/examples.txt to execute an example
  9. Make sure you are actually using Java 17 when executing the jars!! Here is a guide to switch between (installed) java alternatives: https://askubuntu.com/questions/740757/switch-between-multiple-java-versions

deRemo avatar Feb 06 '23 15:02 deRemo