You can run and test a an application directly within Cloud Shell. Cloud Shell has many tools pre-installed, such OpenJDK, Maven, Gradle, and more. Cloud Shell is meant for development and not meant for production or long running processes.
cd $HOMEgit clone https://github.com/saturnism/jvm-helloworld-by-examplecd jvm-helloworld-by-example/helloworld-springboot-tomcat
java -jar target/helloworld.jar
From Cloud Shell, click Web Preview, then click Preview on port 8080.