First build using: ./build.bash To run this example run: # Starts the light bulb controller ./run1.bash # Starts the fan controller ./run3.bash # For each switch you need to run (can launch as many of these as desired as long as input number is different) ./run2.bash Dont forget to clear the cloud server directory https://javatutorial.net/raspberry-pi-java-tutorial