Good things to consider when using Java with your RPi.

General discussions regarding the program language Java and its API's.

Moderator: Marcus

User avatar
Marcus
Site Admin
Posts: 1823
Joined: 2005.04.04 10:52
Location: Stockholm
Contact:

Good things to consider when using Java with your RPi.

Postby Marcus » 2013.12.31 00:31

Install Oracle's JDK. I usually do this via synaptic.

Next don't forget to switch to the Oracle JDK:
sudo update-java-alternatives -s jdk-7-oracle-armhf

Next install Pi4J. If on Raspbian, follow the Raspbian instructions:
http://pi4j.com/install.html

For Dallas 1-wire support and i2c you probably want your /etc/modules to look like this:
snd-bcm2835
i2c-bcm2708
i2c-dev
w1-gpio
w1-therm

User avatar
Marcus
Site Admin
Posts: 1823
Joined: 2005.04.04 10:52
Location: Stockholm
Contact:

Re: Good things to consider when using Java with your RPi.

Postby Marcus » 2015.03.01 01:01

Or interactively:
sudo update-alternatives --config java
sudo update-alternatives --config javac

User avatar
Marcus
Site Admin
Posts: 1823
Joined: 2005.04.04 10:52
Location: Stockholm
Contact:

Re: Good things to consider when using Java with your RPi.

Postby Marcus » 2015.03.01 02:06

P4 on the PI:

Download ARMHF version. chmod +x. Copy to /usr/local/bin. Create .p4config with all settings. export P4CONFIG=/home/pi/.p4config in .bashrc.


Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest