I use ArchLinux, and an IDE called PyCharm. On its download page, it recommends using Java 6 instead of OpenJDK. ArchLinux has an OpenJDK package (
jdk7-openjdk) that I have installed, installed, and from what I had read in the Arch Wiki on Java, it should be possible to install Oracle Java 6 along side OpenJDK 7 via a packages called
jre6-compat, which install these versions of Java in
/opt/ instead of the normal location.
However, after installing
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 in my
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:
- Using Gnome 3 as DE