当前位置:   article > 正文

Unsupported Java Version: Cannot start under Java 1.7.0_151-b01: Java 1.8 or later is required.问题解决。_pycharm unsupported java version

pycharm unsupported java version

当我们在ubuntu 14.04下安装pycharm时,可能出现Unsupported Java Version: Cannot start under Java 1.7.0_151-b01: Java 1.8 or later is required.

解决方案:
  • 添加apt-get源
    sudo vim /etc/apt/sources.list.d/java-8-debian.list

deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main


  • 按ESC后输入:wq保存退出后执行
    sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys EEA14886
    sudo apt-get update.
    sudo apt-get install oracle-java8-installer

  • 安装完毕,测试java版本:
    java –version

  • Make as default
    sudo apt-get install oracle-java8-set-default

  • 结束,可以安装pycharm了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/476640
推荐阅读
相关标签
  

闽ICP备14008679号