sudo apt-get update
sudo apt-get install openssh-server samba
sudo apt-get install openssh-server samba
sudo apt-get install kdenetwork-filesharing
sudo apt-get install flex bison gperf build-essential curl zli-dev
sudo apt-get install g++-multilib g++-4.4-multilib libc6-dev-i386 lib32ncurses5-dev
sudo apt-get install ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z1-dev
sudo apt-get install wine mingw32 tofrodos libgl1-mesa-dev
sudo apt-get install flex bison gperf build-essential curl zli-dev
sudo apt-get install g++-multilib g++-4.4-multilib libc6-dev-i386 lib32ncurses5-dev
sudo apt-get install ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z1-dev
sudo apt-get install wine mingw32 tofrodos libgl1-mesa-dev
1、
sudo apt-get install flex bison gperf build-essential curl zlib1g-dev g++-multilib g++-4.4-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev wine mingw32 tofrodos libgl1-mesa-dev
2、
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
sudo apt-get install flex bison gperf build-essential curl zlib1g-dev g++-multilib g++-4.4-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev wine mingw32 tofrodos libgl1-mesa-dev
2、
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
jdk-6u43-linux-x64.bin
注意,必须是1.6版本的,要不会报错
sudo mkdir /etc/java
sudo cp jdk-6u43-linux-x64.bin /etc/java/
cd /etc/java/
sudo ./jdk-6u43-linux-x64.bin
3、配置环境变量
$ sudo gedit /etc/profile
在文件的末尾加上如下内容:
# for java
export JAVA_HOME=/etc/java/jdk1.6.0_43
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin:$PATH
4. 使设置成效:
$ source /etc/profile
查看 :$ java -version