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 20:39] nx3 [Configure Java] |
howto:linux:install:raspbian [2015/09/18 13:16] szati [Set the JAVA_HOME environment variable on Raspbian] |
||
---|---|---|---|
Line 22: | Line 22: | ||
Decompress the tar file, the file name will change depending on the version you download | 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 | + | sudo tar zxvf jdk-8u60-linux-arm32-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: | ||
< | < | ||
- | sudo update-alternatives | + | sudo update-alternatives |
- | sudo update-alternatives | + | sudo update-alternatives |
- | sudo update-alternatives --set java / | + | sudo update-alternatives --set java / |
</ | </ | ||
Set version, you get to set as new versions of Raspbian have JDK7 preinstalled, | Set version, you get to set as new versions of Raspbian have JDK7 preinstalled, | ||
< | < | ||
- | sudo update-alternatives | + | sudo update-alternatives |
- | sudo update-alternatives | + | sudo update-alternatives |
</ | </ | ||
Line 60: | Line 60: | ||
Enter the following: | Enter the following: | ||
- | < | + | < |
Exit nano making sure you save the file. | Exit nano making sure you save the file. | ||
Line 68: | Line 68: | ||
Put the entries at the end of the file: | Put the entries at the end of the file: | ||
< | < | ||
- | export JAVA_HOME="/ | + | export JAVA_HOME="/ |
export PATH=$PATH: | export PATH=$PATH: | ||
</ | </ |