Google App Engine on Java 8 – java.com cannot be used during development time. The server?

I have migrated my Google App Engine Application to the recent Java 8 runtime environment The application works normally and has some problems

I have migrated my code to use Java Time instead of joda time, but the application engine server threw an error in response to the request:

This only happens on the development server, and the production server seems to be working properly

documentation says:

When searching for this error, I found a reference to prohibiting file access, which I understand, but I don't know how this applies to Java Time package In addition, the reference I found (so question) seems to be related to the Java 7 runtime environment

It's not very urgent. I can stay in joda time, but it's a surprise for me

Was this expected, or was it a mistake, or did I do something wrong?

Solution

I can confirm that I use Java 8 features in both the development environment and the production server, including Java time.

It might be a Java 7 SDK for running your development server Check the build environment settings

Make sure you have the latest application engine API jar in your WEB-INF / lib

You also need to add java8 to App Engine - web xml

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>