NullVoxPopuli
NullVoxPopuli

Reputation: 65173

Has anyone gotten a .jar to run on google app engine?

I don't really want to push my whole project, as I don't update the server at all.

Google App Engine supports java, but is fairly complicated.

Just wondering if anyone has successfully been able te get a simple jar running on it.

Upvotes: 0

Views: 1080

Answers (2)

John
John

Reputation: 1351

The simplest way I know of to start getting code working on GAE for Java is Gaelyk. If you unzip the template project, you can deploy it to GAE immediately. You can write simple servlets (as Groovlets) in Groovy, or add Java Servlets to the web.xml. Groovy code can make calls to Java transparently (and vice versa, as Groovy produces and consumes Java objects).

As Adrian notes, GAE is a platform for deploying web applications and services. If your program is not accessible as a web application or service, I'm curious what benefit there is to using a cloud provider.

Upvotes: 0

Adrian Petrescu
Adrian Petrescu

Reputation: 18019

If you mean just a simple JAR with a main method, that won't work. Your application has to be a web service that responds to requests.

If you want to just be running random code on a host in the cloud, you should take a look at the free tier of Amazon EC2.

Upvotes: 4

Related Questions