Cloudslab / cloudsim

CloudSim: A Framework For Modeling And Simulation Of Cloud Computing Infrastructures And Services
http://www.cloudbus.org/cloudsim/
816 stars 491 forks source link

Jar version #154

Closed CT702-7 closed 1 month ago

CT702-7 commented 2 years ago

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

deRemo commented 1 year ago

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 commented 1 month ago

You can follow the README of cloudsim7g too