标签:
1.下载JDK1.8:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2.解压:
sudo mkdir /usr/lib/jvm $ sudo tar zxvf jdk-8u25-linux-i586.tar.gz -C /usr/lib/jvm $ cd /usr/lib/jvm $ sudo mv jdk1.8.0_25 java
3.设置变量
sudo vim ~/.bashrc export JAVA_HOME=/usr/lib/jvm/java export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH
4.配置默认的JDK
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java/bin/java 300 sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java/bin/javac 300 sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/java/bin/jar 300 sudo update-alternatives --install /usr/bin/javah javah /usr/lib/jvm/java/bin/javah 300 sudo update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/java/bin/javap 300
5. 执行
sudo update-alternatives --config java
6.测试JDK:
$ java -version java version "1.8.0_25"
7.执行pycharm.sh:
? ~ ./pycharm-community-4.0.4/bin/pycharm.sh
Deepin linux2014.2下安装pycharm4社区版
标签:
原文地址:http://my.oschina.net/jk409/blog/365242