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?