You are not logged in.

#1 2012-11-15 18:36:29

Nikorasu
Member
Registered: 2009-09-26
Posts: 28

[Solved] How to use Oracle Java 6 for specific applications

I use an IDE called PyCharm. On its download page, it recommends using Java 6 instead of OpenJDK. I currently have jdk7-openjdk 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.

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

Last edited by Nikorasu (2012-11-17 20:54:33)

Offline

#2 2012-11-17 17:35:28

Nikorasu
Member
Registered: 2009-09-26
Posts: 28

Re: [Solved] How to use Oracle Java 6 for specific applications

Has anyone run into any similar problems? For example, has someone wanted to run minecraft under a different JDK/JRE than normal? I'm sure I could figure something out from even that. I just don't have any idea where to start on this as there's little information on using the jre6-compat or jdk6-compat packages.

Offline

#3 2012-11-17 20:54:17

Nikorasu
Member
Registered: 2009-09-26
Posts: 28

Re: [Solved] How to use Oracle Java 6 for specific applications

I found the solution.

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 smile

Last edited by Nikorasu (2012-11-17 20:55:01)

Offline

Board footer

Powered by FluxBB