Swapping OpenJDK for Sun JDK on Ubuntu

Recently I installed PhpStorm on Ubuntu that requires Sun JDK rather than the OpenJDK that Ubuntu installs with. It wasn't a matter of it running better with the Sun solution, which is doesn't run at all with OpenJDK. I tried simply uninstalling OpenJDK and installing Sun's JDK, but that didn't work...there were missing headers, etc., cryptic messages to a Linux n00b. I did find the solution, though, and am posting it here to make someone else's life easier.

Subscribe to oracle