On https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-compute, we read:
"In CreateAddressDiskAndInstance.java we put together all the code shown above into one program. The program assumes that you are running on Compute Engine or from your own desktop. To run the example on App Engine, simply move the code from the main method to your application's servlet class and change the print statements to display on your webpage."
This might not be all that's required to run on App Engine. In particular it might also be necessary to add a dependency on google-api-client-appengine to pom.xml. Do you know anything about this?
See GoogleCloudPlatform/google-cloud-eclipse#2674 and https://developers.google.com/api-client-library/java/google-api-java-client/setup#google-api-client-appengine
On https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-compute, we read:
"In CreateAddressDiskAndInstance.java we put together all the code shown above into one program. The program assumes that you are running on Compute Engine or from your own desktop. To run the example on App Engine, simply move the code from the main method to your application's servlet class and change the print statements to display on your webpage."
This might not be all that's required to run on App Engine. In particular it might also be necessary to add a dependency on google-api-client-appengine to pom.xml. Do you know anything about this?
See GoogleCloudPlatform/google-cloud-eclipse#2674 and https://developers.google.com/api-client-library/java/google-api-java-client/setup#google-api-client-appengine