| 87 | We need to install other dependencies since Floodlight was recently updated to support Java 8. Enter the following commands: |
| 88 | { |
| 89 | sudo apt-get update |
| 90 | sudo apt-get install software-properties-common python-software-properties |
| 91 | sudo add-apt-repository ppa:webupd8team/java |
| 92 | sudo apt-get update |
| 93 | sudo apt-get install oracle-java8-installer |
| 94 | } |
| 95 | |
| 96 | Confirm the java version by typing the command: |
| 97 | { |
| 98 | java -version |
| 99 | } |
| 100 | |
| 101 | Now we need to compile the controller. We are going to do that by using the tool '''ant'''. Enter the following command to install '''ant''': |
| 102 | { |
| 103 | sudo apt-get install ant |
| 104 | } |
| 105 | |
| 106 | To communicate with the Floodlight Controller using the built-in REST API's, we need to install the tool '''curl'''. Enter the following command: |
| 107 | { |
| 108 | sudo apt-get install curl |
| 109 | } |
| 110 | |
| 111 | Now we can compile the controller. Enter the following commands: |
| 112 | { |
| 113 | cd floodlight |
| 114 | ant |
| 115 | } |
| 116 | |
| 117 | You can start the Floodlight Controller using the command: |
| 118 | { |
| 119 | java -jar target/floodlight.jar |
| 120 | } |
| 121 | |