Java 8 console application.

86 views
Skip to first unread message

Pavlo M

unread,
Jun 3, 2016, 5:02:51 AM6/3/16
to Google App Engine
Hello.

I have a Java application and it packed to jar with Oracle JDK 8, so I can run it in command line shell. It makes http requests and stores some data to DataBase.

Now I want to run few instances of this application on Google Cloud. But I cannot get some of steps I should do. First of all I found that Google not support Java 8. I can refactor and compile on Java 7. But the next problem I not see any docs how to run jar file. What service should I check? The search pass me to https://cloud.google.com/appengine/docs/java/quickstart#before-you-begin but this manual actually not helps, because I have jar file, but there is MAVEN plugin used to deploy Java Servlet application. I do not need web server. Is it possible to get ssh console and run application like java -jar, use linux chron like on usual server? Or I should use Maven plugin only, to deploy, even if I not need Web Server (Servlet Container)?

Thanks.

Chad Vincent

unread,
Jun 3, 2016, 3:14:22 PM6/3/16
to Google App Engine
Sounds like you're looking at the AppEngine Classic documentation where you'll likely want the AppEngine Flexible (ManagedVM) runtimes.

AppEngine Classic doesn't run Java applications, it is a Java web service (think Jetty/Tomcat).  It uses a web.xml to determine which classes that extend HTTPServlet handle which requests.

Chad Vincent

unread,
Jun 3, 2016, 3:16:26 PM6/3/16
to Google App Engine
Actually, on second thought, I think Compute Engine could actually be what you want instead of ManagedVM.  It's been a while since I dug into the differences.

Pavlo M

unread,
Jun 5, 2016, 12:20:40 PM6/5/16
to Google App Engine
Yes, right. I'll dive deeper to Compute Engine. Thanks.
Reply all
Reply to author
Forward
0 new messages