How to Create Java Development Environment In Google Cloud Platform

In this blog, I will discuss How to Create Java Development Environment In the Google Cloud Platform.

Creating and Connecting to a Virtual Machine

Name: dev-instance

Region: us-central1 (Iowa)

Zone: us-central1-a

Machine configuration: N1

Identity and API: Select Allow full access to all Cloud APIs.

Firewall: Enable Allow HTTP traffic.

Leave the remaining settings as their defaults, and click Create.


Installing software on the VM instance

sudo apt-get update
sudo apt-get install git

Enter y to continue because we are accepting the use of additional disk space.

sudo apt-get install -yq maven

sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

This command to configure the IP tables redirects requests on Port 80 to Port 8080.

Configure the VM to Run Application Software

java --version

git clone

mvn yourfilename:run
mvn exec:java@list-gce


In the article, I give a view that how we can Set up a Java Development Environment.

Thanks for reading.

If you Want to Connect with Me:



Thank you stay safe, stay healthy.

Stay tuned till the next blog.

Google Developers Google Cloud JavaScript Daily Google Cloud Developer Community Torino

I am Google Cloud Certified Associate Cloud Engineer and MS Azure Certifed. I have been working on different fields including Cloud Computing , Sap ABAP.