Deepin linux2014.2下安装pycharm4社区版
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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。