Skip to content

Instantly share code, notes, and snippets.

@msalahz
Last active September 23, 2016 08:24
Show Gist options
  • Save msalahz/c75dad96c719b503fcdbf75d7c97b239 to your computer and use it in GitHub Desktop.
Save msalahz/c75dad96c719b503fcdbf75d7c97b239 to your computer and use it in GitHub Desktop.
Fix PyCharm java error on Ubuntu

add this line /usr/lib/jvm/java-8-openjdk-amd64 to $HOME/.PyCharm2016.2/config/pycharm.jdk file

and this line export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 to /etc/profile.d/oraclejdk.sh file

Use source to load the variables, by running this command: source /etc/profile.d/oraclejdk.sh

Then check the variable, by running this command: echo $JAVA_HOME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment