You are not logged in.

#1 2014-05-20 15:10:36

toogy
Member
Registered: 2013-10-25
Posts: 46

IntellijIDEA with OracleJDK

I just installed intellij-idea-community-edition from the AUR and got:

» yaourt -S intellij-idea-community-edition
resolving dependencies...
looking for inter-conflicts...

warning: insufficient columns available for table display
Packages (2): intellij-idea-libs-13.1.2-1
              intellij-idea-community-edition-13.1.2-1

Total Download Size:    138.16 MiB
Total Installed Size:   329.42 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 intellij-idea-libs-...    15.1 KiB   140K/s 00:00 [#####################]   0%
 intellij-idea-community-edition-13.1.2-1-any                                 138.2 MiB  1392K/s 01:42 [############################################################] 100%
(2/2) checking keys in keyring                                                                         [############################################################] 100%
(2/2) checking package integrity                                                                       [############################################################] 100%
(2/2) loading package files                                                                            [############################################################] 100%
(2/2) checking for file conflicts                                                                      [############################################################] 100%
(2/2) checking available disk space                                                                    [############################################################] 100%
(1/2) installing intellij-idea-libs                                                                    [############################################################] 100%
(2/2) installing intellij-idea-community-edition                                                       [############################################################] 100%
WARNING:
  Running IntelliJ IDEA using OpenJDK is officially unsupported
  because of possible performance and graphics problems

This warning in the end is exactly what I want to avoid since I installed intellij IDEA manually just before and got a lot of graphic issues.

I installed jdk7-compat from the AUR to get OracleJDK (just before installing intellij-idea-community-edition) but apparently, it's using OpenJDK by default.

How can I tell intellij IDEA to use OracleJDK instead?

Last edited by toogy (2014-05-20 15:10:58)


water vapor is invisible

Offline

#2 2014-05-20 15:15:08

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: IntellijIDEA with OracleJDK

Set the IDEA_JDK environment variable (it's like JAVA_HOME but IDEA specific).


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2014-05-20 15:36:30

toogy
Member
Registered: 2013-10-25
Posts: 46

Re: IntellijIDEA with OracleJDK

So,

export IDEA_JDK="/opt/java7/"

?


water vapor is invisible

Offline

#4 2014-05-20 15:39:17

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: IntellijIDEA with OracleJDK

Yes. Although you'll probably want to put that in your bashrc/profile etc. to persist it.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#5 2014-05-20 15:47:22

toogy
Member
Registered: 2013-10-25
Posts: 46

Re: IntellijIDEA with OracleJDK

Ok, I put " export IDEA_JDK='/opt/java7/' " in my ~/.zshrc and sourced it.

Just runned idea.sh but I still have the rendering issues. How do I know if Intellij IDEA is using the correct JDK or not?


water vapor is invisible

Offline

#6 2014-05-20 15:56:42

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: IntellijIDEA with OracleJDK

ps -eF|grep java

If by rendering issues you mean that windows become unresponsive/blanked out when switching focus... join the club (also, what window manager are you using).

Last edited by Stebalien (2014-05-20 15:57:09)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#7 2014-05-20 16:02:38

toogy
Member
Registered: 2013-10-25
Posts: 46

Re: IntellijIDEA with OracleJDK

» ps -eF | grep java
toogy    13436 13401  4 917109 389064 0 17:44 ?        00:00:49 /usr/lib/jvm/java-7-openjdk/bin/java -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=96m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djsse.enableSNIExtension=false -XX:+UseCodeCacheFlushing -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=./idea64.vmoptions -Xbootclasspath/a:./../lib/boot.jar -Didea.paths.selector=IdeaIC13 -Djb.restart.code=88 com.intellij.idea.Main

Not using oracle....

Last edited by toogy (2014-05-20 16:02:56)


water vapor is invisible

Offline

#8 2014-05-20 16:55:57

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: IntellijIDEA with OracleJDK

How did you launch IDEA? I'm guessing that it isn't picking up that environment variable. Does `IDEA_JDK=/opt/java7 idea.sh` work? If so, you'll probably want to set that variable in a '/etc/profile.d/' script. ~/.zshrc is only sourced by interactive zsh instances so your DE (probably) won't pick up any environment variables you set there. See: https://wiki.archlinux.org/index.php/En … _Variables


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#9 2014-05-21 01:08:37

Pse
Member
Registered: 2008-03-15
Posts: 415

Re: IntellijIDEA with OracleJDK

Hmm, weird. I used to run IDEA with OpenJDK and things were just fine.

Offline

#10 2014-05-21 07:29:27

toogy
Member
Registered: 2013-10-25
Posts: 46

Re: IntellijIDEA with OracleJDK

Stebalien wrote:

How did you launch IDEA? I'm guessing that it isn't picking up that environment variable. Does `IDEA_JDK=/opt/java7 idea.sh` work? If so, you'll probably want to set that variable in a '/etc/profile.d/' script. ~/.zshrc is only sourced by interactive zsh instances so your DE (probably) won't pick up any environment variables you set there. See: https://wiki.archlinux.org/index.php/En … _Variables

Launching with `IDEA_JDK=/opt/java7 idea.sh' works. My graphic issues disappear and it's correctly using OracleJDK.

I added `export IDEA_JDK=/opt/java7' in my ~/.xinitrc and it works now. Thank you Stebalien@

Pse wrote:

Hmm, weird. I used to run IDEA with OpenJDK and things were just fine.

It's probably because we don't have the same hardware, drivers...


water vapor is invisible

Offline

Board footer

Powered by FluxBB