# Cloud Shell

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.

## Getting Started

### Clone

```bash
cd $HOME
git clone https://github.com/saturnism/jvm-helloworld-by-example
cd jvm-helloworld-by-example/helloworld-springboot-tomcat
```

### Build

```bash
./mvnw package
```

### Run

{% tabs %}
{% tab title="Plugin" %}

```bash
./mvnw spring-boot:run
```

{% endtab %}

{% tab title="JAR" %}

```bash
java -jar target/helloworld.jar
```

{% endtab %}
{% endtabs %}

### Connect

From Cloud Shell, click **Web Preview**, then click **Preview on port 8080.**

![Web Preview](https://3412348858-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_Laqs9uSAihPmRemDj%2F-MEYgjy5gKxrW8NzFX9j%2F-MEYivaxAseYveaxV1w9%2Fimage.png?alt=media\&token=60183f86-8bc9-4816-8f98-d31e0beee239)
