整体思路:安装java虚拟环境,下载并使用pycharm及相应的破解包,安装pycharm
一 安装java虚拟环境.
1 ubuntu默认没有安装java虚拟环境,输入命令可以测试,会看不到java版本
java -version
2 从官网下载linux版的最新java se包,链接如下:
http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html
3 源码安装,
1 解压缩,放到指定目录3.修改环境变量:
sudo mkdir /usr/lib/jvm
sudo tar -zxvf jdk-7u60-linux-x64.gz -C /usr/lib/jvm
2 修改环境变量:
sudo vim ~/.bashrc
文件的末尾追加下面内容:
#set oracle jdk environment
export JAVA_HOME=/usr/lib/jvm/jdk-10 ## 这里要注意目录要换成自己解压的jdk 目录
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
使环境变量马上生效
source ~/.bashrc
3 设置系统默认jdk 版本
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-10/bin/java 300
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-10/bin/javac 300
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-10/bin/jar 300
sudo update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/jdk-10/bin/javap 300
然后执行:
sudo update-alternatives --config java
4 测试jdk
java -version
结果如下,java虚拟环境安装成功
二 从pycharn官网下载pycharm-professional-2017.3.4.tar.gz压缩包,
从http://idea.lanyus.com/下载破解包JetbrainsCrack-2.7-release-str.jar,
并激活pycharm
1 解压pycharm压缩包
tar -xzvf pycharm-professional-2017.3.4.tar.gz
2 把破解包JetbrainsCrack-2.7-release-str.jar放入该目录
~/下载/pycharm-2017.3.4/bin
3 修改该目录内的2个文件pycharm64.vmoptions和pycharm.vmoptions,分别
在2个文件内容末尾添加以下内容保存
-javaagent:/下载/pycharm-2017.3.4/bin/JetbrainsCrack-2.7-release-str.jar
4 利用破解包生成pycharm的激活码,输入命令
java -jar JetbrainsCrack-2.7-release-str.jar
激活码信息如下
{"licenseId":"ThisCrackLicenseId",
"licenseeName":"Rover12421",
"assigneeName":"Rover12421",
"assigneeEmail":"rover12421@163.com",
"licenseRestriction":"By Rover12421 Crack, Only Test! Please support genuine!!!",
"checkConcurrentUse":false,
"products":[
{"code":"II","paidUpTo":"2099-12-31"},
{"code":"DM","paidUpTo":"2099-12-31"},
{"code":"AC","paidUpTo":"2099-12-31"},
{"code":"RS0","paidUpTo":"2099-12-31"},
{"code":"WS","paidUpTo":"2099-12-31"},
{"code":"DPN","paidUpTo":"2099-12-31"},
{"code":"RC","paidUpTo":"2099-12-31"},
{"code":"PS","paidUpTo":"2099-12-31"},
{"code":"DC","paidUpTo":"2099-12-31"},
{"code":"RM","paidUpTo":"2099-12-31"},
{"code":"CL","paidUpTo":"2099-12-31"},
{"code":"PC","paidUpTo":"2099-12-31"},
{"code":"DB","paidUpTo":"2099-12-31"},
{"code":"GO","paidUpTo":"2099-12-31"},
{"code":"RD","paidUpTo":"2099-12-31"}
]
5 终端启动pycharm ,在输入激活码部分输入以上激活码信息,成功激活
sh pycharm.sh
`