Posts: 1
Joined: Tue Apr 25, 2017 2:40 am

Java Web App on raspberry pi

Postby ravi0809 » Tue Apr 25, 2017 2:43 am

I want to run a java based web app on my raspberry pi. So please can you guys suggest me a light weight java based application server for raspberry pi?
Posts: 103
Joined: Sat Jan 12, 2013 3:05 pm
Location: UK

Re: Java Web App on raspberry pi

Postby mattlewis » Thu Apr 27, 2017 10:09 pm

For web containers try one of Tomcat, Jetty or Undertow. For web frameworks Spark seems quite popular and lightweight.
Posts: 8
Joined: Tue Sep 09, 2014 9:13 am
Location: Dublin, Ireland

Re: Java Web App on raspberry pi

Postby zacburke » Sun Apr 30, 2017 4:34 pm

Just also like to add that there is a framework called Spring Boot.

This is a very popular framework for building java based applications, and if you choose to build a web application with the framework it comes with an embedded version of tomcat,or jetty , or undertow within it.
Its very simple to run, and doesn't need an install, all it needs is a JRE and you just run the jar which gets built from your development environment.
This jar file has all of the dependencies needed.
It really is that simple.
Please have a look here:

I have used Spring Boot many times, but I havent had the opportunity to use it on the Pi just yet. Maybe you could let us know how you get on.

Posts: 4
Joined: Mon May 01, 2017 10:45 pm

Re: Java Web App on raspberry pi

Postby JohnAntonioCollins » Mon May 01, 2017 11:01 pm

I am using Spring Boot on Raspberry Pi. It seems to work very well. Look at my github to see the code: https://github.com/JohnAntonioCollins/MicBotServer .
Does anybody have experience unit testing gpio methods with mock objects instead of integration testing on an actual Raspberry Pi?
Good luck with your server! :)