This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
howto:linux:install:raspbian [2014/07/22 18:38] nx3 [Prerequisites] |
howto:linux:install:raspbian [2014/07/22 20:38] nx3 [Configure Java] |
||
---|---|---|---|
Line 9: | Line 9: | ||
" | " | ||
- | |||
- | < | ||
- | This isn't working as yet....its a to be updated | ||
- | wget --no-check-certificate http:// | ||
- | tar zxf jdk-8u6-linux-arm-vfp-hflt.tar.gz | ||
- | rm jdk-8u6-linux-arm-vfp-hflt.tar.gz | ||
- | </ | ||
==== Install Oracle Java for ARM ==== | ==== Install Oracle Java for ARM ==== | ||
Download Oracle JDK8 for ARM on your RaspberryPi and get the resulting file to your ' | Download Oracle JDK8 for ARM on your RaspberryPi and get the resulting file to your ' | ||
- | [[https://jdk8.java.net/download.html]] | + | http://www.oracle.com/technetwork/ |
Oracle provide a good installation guide at: | Oracle provide a good installation guide at: | ||
Line 27: | Line 20: | ||
==== Configure Java ==== | ==== Configure Java ==== | ||
- | Switch to " | + | Decompress the tar file, the file name will change depending on the version you download |
- | < | + | < |
+ | sudo tar zxvf jdk-8u6-linux-arm-vfp-hflt.tar.gz -C /opt | ||
+ | </ | ||
Change the owner of JAVA: | Change the owner of JAVA: | ||
- | < | + | < |
Set where the Java components are installed: | Set where the Java components are installed: | ||
< | < | ||
- | update-alternatives | + | sudo update-alternatives |
- | update-alternatives | + | sudo update-alternatives |
- | update-alternatives --set java / | + | sudo update-alternatives --set java / |
</ | </ | ||
- | Now exit " | + | Set version, you get to set as new versions of Raspbian have JDK7 preinstalled, |
- | < | + | < |
+ | sudo update-alternatives –config javac | ||
+ | sudo update-alternatives –config java | ||
+ | </ | ||
+ | |||
+ | Check versions | ||
+ | < | ||
+ | java -version | ||
+ | javac -version | ||
+ | </ | ||
- | Check if JAVA works (version | + | Version |
< | < | ||
pi@raspberrypi ~ $ java -version | pi@raspberrypi ~ $ java -version | ||
Line 118: | Line 122: | ||
start) | start) | ||
# start Serviio in background mode | # start Serviio in background mode | ||
- | su -l $User -c "/ | + | su -l $User -c "/ |
echo "Start Serviio..." | echo "Start Serviio..." | ||
;; | ;; |