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.
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.
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;
https://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...)
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