Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a java server I want to host on the net.

I found google app engine, but it requires a lot of changes to the app.

Basically, I want to put my compiled jar somewhere, then run and control it via command line.

share|improve this question
    
You want to host a jar? Not a war or ear? –  Ignacio Vazquez-Abrams Dec 24 '10 at 5:42
    
if you do not have an AWS account, amazon offer a free tier of a mini instance for a year, which is handy to tool around on; –  Tom H Feb 26 '12 at 17:13
add comment

2 Answers

up vote 0 down vote accepted

You could try the Amazon free tier, which I think gives you a free mini instance for a year; http://aws.amazon.com/free/
Select an ubuntu image from the public images and install it on the instance, and then apt-get install tomcat6 java etc to install a java web application container.

There are some more details in this question/answer about using AWS free tier;
http://stackoverflow.com/questions/4216066/how-to-use-amazon-web-service-free-tier

Also Hpcloud.com are offered a private beta of their new cloud service, which you can sign up for here; http://hpcloud.com/
Which might give you a free instance for a couple of months. (I have been running an instance for about 4 months which is handy for trying out new installs and suchlike and has a much higher RAM limit that the free AWS account)


The reason that you might find it difficult to get free java hosting like you might be familiar with for mod_php or cgi scripts is that in general, java applications do not share resources well.
I mean in the sense that for example tomcat has resources allocated per deployed application which means that its not practical to run 100 tomcat wars in the same app server. But the same is not true of php apps running under mod_php where its just the requests running and cached that are consuming RAM. (my very naive understanding...)

share|improve this answer
add comment

What are our requirements? Typically, you don't host a jar file on a java web server. You host an ear or war file. In that case, you would need to find a free J2EE or Tomacat hoster.

If your Java application is more like a CGI application then you'll probably have a lot more problems finding a free hoster.

If you're not using the J2EE standards, then you may want to consider using something like Google App Engine if you want free hosting.

HTH!

Tom Purl

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.