Java 7 runtime support on App Engine standard was deprecated on December 13, 2017 and will be shut down entirely on January 16, 2019. It is replaced by the Java 8 Runtime Environment.
Samples for the Java 8 runtime can be found here.
This sample demonstrates how to use the Images Java API.
See the Google App Engine standard environment documentation for more detailed instructions.
Using the Google Cloud SDK create a bucket
$ gsutil mb YOUR-PROJECT-ID.appspot.com
- Edit
src/main/java/com/example/appengine/images/ImageServlet.javaand set yourbucketname.
This example uses the App Engine maven plugin. To run this sample locally:
$ mvn appengine:devserver
To see the results of the sample application, open localhost:8080 in a web browser.
In the following command, replace YOUR-PROJECT-ID with your Google Cloud Project ID and SOME-VERSION with a valid version number.
$ mvn appengine:update -Dappengine.appId=YOUR-PROJECT-ID -Dappengine.version=SOME-VERSION