Today I am going to install CloudSim on a fresh install of Ubuntu 18.04.


From CloudSim’s own website:

The primary objective of this project is to provide a generalized, and extensible simulation framework that enables seamless modeling, simulation, and experimentation of emerging Cloud computing infrastructures and application services. By using CloudSim, researchers and industry-based developers can 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 a library written in Java. Meaning there’s no *install’, simply unpack the CloudSim package and add it to the Java classpath and it is ready to be used. We’ll go into more detail on this shortly. For now, let’s make sure we have Java installed. If this is a fresh install, you likely don’t.

$ java -version
Output:

Command 'java' not found, but can be installed with:

sudo apt install default-jre            
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-8-jre-headless 

So let’s go ahead and install it:

$ sudo apt install default-jre


Verify installation:
$ java -version

Output:

openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

Let’s check if we have the JDK installed as well by checking the Java compiler:
$ javac -version

Output:

Command 'javac' not found, but can be installed with:

sudo apt install default-jdk            
sudo apt install openjdk-11-jdk-headless
sudo apt install ecj                    
sudo apt install openjdk-8-jdk-headless 

So let’s go ahead and install that as well:
$ sudo apt install default-jdk


Now lets check again:
$ javac -version
Output:
javac 10.0.2

Next up, since we’re coding Java, I’m gonna use an IDE. Eclipse it is. Download and install it however you see fit. There is a snap package available via Ubuntu Software Center if you’re lazy.


** Post not completed, check back soon!**