Getting started with jclouds

This post will help you setup jclouds.


Jclouds is an open source library that helps you interact with multiple cloud providers using a common interface. For more details like supported clouds visit this site.


1. Download lein

Download a script called lein from here into a file called “”.
Provide execute permissions to this script:

$ chmod u+x

2. Create project.clj

Create a file named “project.clj” and paste the given content in the file:

(defproject deps "1" :dependencies [[org.jclouds/jclouds-all "1.5.7"] [org.jclouds.driver/jclouds-sshj "1.5.7"]])

3. Create pom file

Execute the script file with pom as command line option.

$ ./ pom

This command will create a pom.xml file which will be used in next step.

4. Execute maven command

Install maven on your machine, if not already installed. Then execute the below mentioned command:

$ mvn dependency:copy-dependencies

Note: If you are executing this command behind the proxy, please follow the instructions provided in this link: Force maven to use proxy

After successful execution of this command, it will fill the jars in this directory: ./target/dependency

For some examples like list the virtual machines running, follow this link: List all servers.

-Rasesh Mori