Pycharm install complains about OpenJDK

前端 未结 4 850
孤城傲影
孤城傲影 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条回答
  •  半阙折子戏
    2021-02-01 09:33

    You need to swap OpenJDK to Sun JDK.

    Run this in your terminal (Ctrl + Alt + T):

    sudo apt-get purge openjdk*
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    

    Follow the installation instructions and then check your Java version:

    java -version
    

    It should return something like this:

    java version "1.7.0_10"
    Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
    

    To automatically set up the Java 7 environment variables, you can install the following package:

    sudo apt-get install oracle-java7-set-default
    

    Via WebUpd8

    You don't even need to re-install pycharm it'll switch to the new Java version automatically.

    Hope it helps.

提交回复
热议问题