Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Google App Engine support Java 8?

Trying to get started with Google App Engine - does it work with Java 8?

I've followed the instructions on this page: https://console.developers.google.com/start/appengine

Selecting 'Java', I successfully completed the Maven build, but when I visit localhost:8080 nothing is running.

The instructions say "make sure you have Java 7 JDK installed" however I have just installed Java 8 JDK.

Do I need to separately install Apache?

like image 867
512damon Avatar asked Oct 02 '14 20:10

512damon


People also ask

Which Google application uses Java?

Google has open-sourced the Java Source code for Google App Engine Standard environment, the production runtime, App Engine APIs, and the local SDK. Initially released in 2008, Google App Engine was designed to make it easy for developers to deploy and scale their web applications.

Does Google App Engine support Python 3?

The Python 3 runtime supports Python 3.7, Python 3.8, Python 3.9, and Python 3.10 and uses the latest stable release of the version that is specified in your app. yaml file. App Engine automatically updates to new patch release versions, but it will not automatically update the minor version.

What is Java App Engine?

App Engine Java applications use the Java Servlet API to interact with the web server. An HTTP servlet is an application class that can process and respond to web requests. This class extends either the javax. servlet. GenericServlet class or the javax.


4 Answers

Java 8 is now generally available on App Engine Standard Environment, joining the GA runtime on the App Engine Flexible Environment.

Learn about the differences.

The new Java 8 runtime has all the benefits of Java 7 but with upgrades and enhancements:

  • OpenJDK 8-based Java runtime supports the standard public Java library (no whitelist)
  • Doesn't impose a security manager--your code won't be restricted by Java permissions issues.
like image 176
crb Avatar answered Oct 19 '22 11:10

crb


Not at the time of writing but you can keep track of the status in this issue:

  • Java 8 support: https://code.google.com/p/googleappengine/issues/detail?id=9537
like image 33
Andrejs Avatar answered Oct 19 '22 10:10

Andrejs


[The passage of time has changed the 'no' from this accepted answer to 'yes'. Please see others answers below.]

Short answer, no. They will integrate it over time, but for now if you use it, it will cause you a lot of errors. I would recommend against it

Also take note of user7610's answer below :). It is as of now the only way to have Java 8 on the Cloud Platform

like image 10
Patrice Avatar answered Oct 19 '22 11:10

Patrice


Update: it is available in the "standard" (sandboxed) offering since mid 2017, https://cloud.google.com/blog/products/gcp/java-8-on-app-engine-standard-environment-is-now-generally-available

Before then, it was sort-of available, via Managed VMs. The idea is that you provide a Docker container with whatever software you need (like Java 8) and GAE will use that as your app instance VMs. You still get the autoscaling, monitoring and all that.

The disadvantage of Managed VMSs is that you are charged as for the Compute Engine VMs. That means you pay by minute and there is no free quota. There is the $300 credit for new user accounts for 60 days, but after that you'd have to pay.

like image 10
user7610 Avatar answered Oct 19 '22 11:10

user7610