You are not logged in.

#1 2020-12-18 16:31:50

weirddan455
Member
Registered: 2012-04-15
Posts: 213

IntelliJ IDEA switch to bundled Java runtime warning

I'm getting the following warning whenever I load IntelliJ IDEA (shown as a pop up bubble at the bottom right):

Please consider switching to the bundled Java runtime that is better suited for the IDE (your current Java runtime is 11.0.8+10 by Oracle Corporation).

I believe it may be caused by a recent update since I never saw this message before:

[2020-12-15T01:55:26-0600] [ALPM] upgraded intellij-idea-community-edition (2:2020.2.3-1 -> 2:2020.3-1)

I Googled the message and it looks like IntelliJ ships with its own JVM that they recommend you use.  Does the Arch package just not include this JVM?  Just looking at the files with pacman -Ql intellij-idea-community-edition, I'm not seeing it and the package does depend on java-environment=11 making me think it's meant to use the system's main JVM.

If that's the case, I'm happy enough to hide the warning and use system JVM but I thought I would check to see what other users are doing.  Also curious what changed in the update to make me just notice this now since the IntelliJ site says they've been bundling their own JVM since the 2016 version.

Last edited by weirddan455 (2020-12-18 16:32:11)

Offline

#2 2020-12-19 14:53:58

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,310

Re: IntelliJ IDEA switch to bundled Java runtime warning

In general archlinux prefers to use system installed libraries instead of bundled ones.
(Very often the bundled ones fail to run on archlinux)

from https://github.com/archlinux/svntogit-c … k/PKGBUILD

build() {
  cd intellij-community
  unset _JAVA_OPTIONS
  export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
  export PATH="${JAVA_HOME}/bin:${PATH}"
  export JDK_16_x64=/usr/lib/jvm/java-8-openjdk
  export JDK_18_x64=/usr/lib/jvm/java-8-openjdk
  ant build
  tar -xf out/idea-ce/artifacts/ideaIC-${_build}-no-jbr.tar.gz -C "${srcdir}"
}

That indicates we deliberately don't use their bundled version.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-12-19 15:01:21

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,386

Re: IntelliJ IDEA switch to bundled Java runtime warning

I think the maintainer (in my opinion) made the right decision to not package the upstream edition that includes their roll-their-own JDK called 'JBR': 1) it doesn't make any sense to have each Java package bundle 'their' JVM and then have a plethora of JDK flavors installed that are single use only. 2) The package is already over 1 GB installed size, adding a JDK would increase that even more and 3) the JBR isn't a certified build of OpenJDK - see the 'use at your own risk' warning that JetBrains themselves post here.

Having said all that, with a package that is already 1GB in size, have you checked to see if the JBR may actually be installed and you could point your local configs to use it instead?

Edit: Lone_Wolf beat me to it.

Last edited by twelveeighty (2020-12-19 15:02:24)

Online

#4 2025-10-08 22:54:08

eeln
Member
Registered: 2025-10-08
Posts: 1

Re: IntelliJ IDEA switch to bundled Java runtime warning

I don't presume to know what's the right choice, however I found a use-case in-which having jrb would be useful. I recently installed intellij community and the latex extensions texify-idea and intellij-pdf-viewer it uses. it appears intellij-pdf-viewer is dependent on jrb and refuses to work without it. whenever i try to use it it returns an error: " JCEF is not available!
Seems like your current runtime does not provide JCEF classes. ... You are using default JBR bundled with IDE..."

I tried to switch to jbr, without success so far but I believe its possible

Offline

#5 2025-10-09 08:00:09

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,310

Re: IntelliJ IDEA switch to bundled Java runtime warning

You may want to try https://aur.archlinux.org/packages/inte … te-edition .
In case you don't have experience with building/using aur pacakges, see https://wiki.archlinux.org/title/Arch_User_Repository .

Moderator Note
Closing this old thread.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB