For Pycharm, I just needed to add an environment variable PYCHARM_JDK. For running specific applications, I asked this question on the Unix / Linux StackExchange and got an answer there.
Also, after running PyCharm in Java 6... I would not recommend it. OpenJDK works fine
]]>However, after installing jdk6-compat and jre6-compat, I still see that I am running OpenJDK 7 when I run the following:
% java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (ArchLinux build 7.u9_2.3.3-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
...even after I have set JAVA_HOME and added /opt/java6/bin to my path.
How can I get PyCharm (or other applications) to use Oracle Java 6 instead of OpenJDK?
Thanks, and apologies if I've posted in the wrong place.
Other information that might be helpful:
Running zsh as default shell
Using Gnome 3 as DE