Posts Tagged ‘Java’

Netbeans, Google Cloud and Java7-8

April 22, 2019

Again, this is just a reminder for myself … and maybe helpful for other Java-beginners 😉

Wanted to try Google Cloud … with Java…and Netbeans.

I have been forwarded this helpfull tutorial: How to Setup Google App Engine Server in NetBeans IDE

Found two issues, relative small if you are in Java world for quite a while … but I start as a total beginner:

First: JAVA_HOME was missing.
I installed the JDK 1.8 (this jdk-8u212-windows-x64.exe here) and JAVA_HOME was missing, so for the 100% beginners out there a good tutorial is How to set JAVA_HOME on Windows 10

Second: could not deploy the hello world app and had this error messagE:

com.google.apphosting.utils.config.AppEngineConfigException: GAE Java7 is not supported anymore.
Unable to update app: GAE Java7 is not supported anymore.

Workaround seems well known: in my WebApplication edited appengine-web.xml and added

<runtime>java8</runtime>

more info on appengine-web.xml Reference

That’s all! 🙂