CF Sample App Java A sample Java Spark application to deploy to Cloud Foundry which works out of the box. Run locally Install the Java JDK Install Gradle Run gradle build Run java -jar build/libs/cf-sample-app-java-1.0.0.jar Visit http://localhost:4567 Run in the cloud Install the Java JDK Install Gradle Install the cf CLI Run gradle build Run cf push my-java-app -p build/libs/cf-sample-app-java-1.0.0.jar --random-route Visit the given URL