This blog will help you get started quick, so you can focus on the details.

Tuesday, April 11, 2017

QuickStart: Programming Java On Your Raspberry PI

The Raspberry PI comes with Java already installed when you install Rasbian however the 2 Programming IDE that it comes with will not let you open your java files for editing rather you have to use an alternative.

There are a few choices in doing this. You can install Eclipse on your computer and then deploy and/or debug from your computer connected remotely to your Raspberry PI. This is nice in some ways because you have the power of the full IDE however as you are working remotely, so if you want to tweek stuff right on the Raspberry PI you are constantly flipping from SSH or VNC to your local computer and back.

Alternatively, you can install a lightweight IDE right on the Raspberry PI. This allows you to work locally, edit files locally. No switching back and forth. Here is a list of some lightweight IDE:

Dr. Javais a lightweight development environment for writing Java programs. It is designed primarily for students, providing an intuitive interface and the ability to interactively evaluate Java code. It also includes powerful features for more advanced users.

Geany is a lightweight ide as well. You can install it using this the following:

sumo apt-get install geany

BlueJ is one of the IDE already installed however when you try to open the files you MUST choose Open Non BlueJ

There are lots of other ways to work with Java on your Raspberry PI. If you have other ways let me know and I will add them here. Email me at chris.williams@readwatchcreate.com and follow me on twitter @BerryPIChris