Installing Java JDK

From Projects Wiki
Revision as of 02:00, 19 July 2013 by Ralph Iden (talk | contribs) (Created page with "'''Installing Java JDK''' Submitted by Ed Schoolcraft <source lang="bash"> #!/bin/bash sudo mkdir -p /home/pi/downloads cd /home/pi/downloads sudo wget --no-check-certifi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Installing Java JDK

Submitted by Ed Schoolcraft

#!/bin/bash

sudo mkdir -p /home/pi/downloads
cd /home/pi/downloads
sudo wget --no-check-certificate http://www.java.net/download/JavaFXarm/jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz
cd /usr/local
sudo tar -xzf /home/pi/downloads/jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz

cd /home/pi
echo 'JAVA_HOME=/usr/local/jdk1.8.0' >>.bash_profile
echo 'PATH=$JAVA_HOME/bin:$PATH' >>.bash_profile

echo You should reboot to get the environment variables.

exit