IntelliJ only runs as root

I'm trying to get IntelliJ running on Fedora 17, but whenever I launch it as my own user it gives me an error message saying that it is using OpenJDK  When I run it as root, it runs fine and uses Oracle JDK.  I'm not sure why this is the case.  I've tried to check where the root account is finding it but "echo $JAVA_HOME" and "echo $JDK_HOME" don't seem to be set as they just print out blank lines.  They are also not set for my own user account.  The JDK also does not appear in my PATH variable in either account.

Why is this working fine as root, and how do I figure out where it is finding the JDK as the root account so that I can set it up correctly under my account?

1 comment

I uninstalled and reinstalled Oracle JDK and it seems that JAVA_HOME is set correctly now.  I don't know why it wasn't set correctly from the initial installation of the JDK.

0

Please sign in to leave a comment.