Exploring Java is a ton of fun on Raspberry Pi. One way to do that is to develop Java web applications and deploy them to Raspberry Pi with an Apache Tomcat server. That's what I'm doing in this video!
Using the Advanced Packaging Tool (apt-get) to install Tomcat on the Raspberry Pi requires us to go with Tomcat 7 as of the date of this recording, but that works for this demonstration. Challenges encountered in this video that we overcome include:
Installing Tomcat 7 instead of Tomcat 8
Setting JAVA_HOME on Raspberry Pi for Oracle Java 8
Setting JAVA_HOME in the Tomcat config
Installing Tomcat admin modules on Raspberry Pi
Enabling users and roles on Tomcat, which I stumble over a bit at first -- it's been a while for me apparently.
Once Tomcat is up and running, you have a familiar interface for deploying Java web apps on your Raspberry Pi! It's almost certainly slower than what you're used to, but it's functional and will handle lightweight Java web apps with ease for fun experimentation on Raspberry Pi!
Join our Facebook Community:
/ techzonk
Follow us on Twitter:
/ techzonk