2. Install Tools

PC OS

Network

Permission

ubuntu system

online

root

2.1 Install tools

sudo apt-get install build-essential
sudo apt-get install zlib1g-dev
sudo apt-get install flex
sudo apt-get install libx11-dev
sudo apt-get install gperf
sudo apt-get install libncurses5-dev
sudo apt-get install bison
sudo apt-get install lsb-core
sudo apt-get install lib32z1-dev
sudo apt-get install g++-multilib
sudo apt-get install lib32ncurses5-dev
sudo apt-get install uboot-mkimage
sudo apt-get install g++-4.4-multilib

Note

In case of errors please install the corresponding software package according to the error message.

2.2 Install JDK

sudo mkdir /usr/lib/java
sudo tar zxvf java-8-openjdk-amd64.tar.gz –C /usr/lib/java/

Add the following information in the end of /etc/profile

export JAVA_HOME=/usr/lib/java/java-8-openjdk-amd64
export JRE_HOME=/usr/lib/java/java-8-openjdk-amd64/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/jre/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/jre/bin:$PATH
source /etc/profile

Check JDK version

java -version