Pycharm install complains about OpenJDK

前端 未结 4 791
孤城傲影
孤城傲影 2021-02-01 08:36

I try to install Pycharm on Ubuntu 12.04 and I have this information:

user@user:~/Pobrane/pycharm-2.5.2/bin$ sh pycharm.sh
OpenJDK Runtime Environment (IcedTea6          


        
4条回答
  •  旧时难觅i
    2021-02-01 09:22

    1. Check the architecture of your system:uname -m
    2. Download Oracle's JDK (7/8) from their website or use wget: mkdir -p ~/Downloads && cd ~/Downloads && wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u31-b13/jdk-8u31-linux-x64.tar.gz
    3. Once that's done, extract it to /opt/jdk (as root): mkdir -p /opt/jdk && tar -zxf ~username/Downloads/jdk-8u*-linux-x64.tar.gz -C /opt/jdk
    4. Download Pycharm and follow normal installation procedure.
    5. Edit /path/to/pycharm/install/bin/pycharm.sh. Immediately above the conditional block starting with if [ -n "$PYCHARM_JDK" -a -x "$PYCHARM_JDK/bin/java" ];, add a line stating export PYCHARM_JDK=/opt/jdk/jdk1.8.0_N; (where N is the version of the JDK that you have downloaded).
    6. Start Pycharm and Go to 'Help' -> 'About'. It should show 'JRE 1.8.0_*' instead of 'OpenJDK'.

    Note: Don't run update-alternatives if you have installed software that uses OpenJDK. Switching versions might cause issues/crashes in those applications.

    Source

提交回复
热议问题