You are not logged in.

#1 2024-06-23 10:15:56

mine_diver
Member
Registered: 2024-03-18
Posts: 60

[SOLVED] Can't change boot Java runtime for IntelliJ IDEA Community

Hello.

I have IntelliJ IDEA Community Edition installed from the Arch's extra repository.
Been having issues with markdown preview renderer. So much so that there was no option to show the preview in the first place.
So I tried installing a third party plugin that provides similar functionality to the built-in one, only to be greeted with this message on IDE restart:

Your environment does not support JCEF, cannot use Markdown Editor

So I went into the IDE's settings and found that there were a few bundled runtimes with JCEF support explicitly stated.
Chose the latest one of Java 17 and restarted, only to see the same exact message appear.

I take it that something makes IntelliJ always use the system runtime for whatever reason. Google isn't of much help.
Is it something known that can be fixed? Did I screw up somewhere? Thanks.

Last edited by mine_diver (2024-08-31 13:15:34)

Offline

#2 2024-06-23 22:31:34

mine_diver
Member
Registered: 2024-03-18
Posts: 60

Re: [SOLVED] Can't change boot Java runtime for IntelliJ IDEA Community

I've managed to somewhat solve this by manually setting the IDEA_JDK environment variable in my idea.desktop to the runtime with JCEF installed:

Exec=IDEA_JDK="/home/mine_diver/.jbr/jbr_jcef-17.0.11-linux-x64-b1207.24/" /usr/bin/idea %f

But it can't be the right solution, can it? Why does /usr/bin/idea choose the system runtime in the first place, if it's bound to break actual features?

Offline

#3 2024-06-23 22:55:33

mine_diver
Member
Registered: 2024-03-18
Posts: 60

Re: [SOLVED] Can't change boot Java runtime for IntelliJ IDEA Community

Well, found a related bug report - https://gitlab.archlinux.org/archlinux/ … -/issues/4

Offline

#4 2024-06-24 09:32:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,236

Re: [SOLVED] Can't change boot Java runtime for IntelliJ IDEA Community

But it can't be the right solution, can it? Why does /usr/bin/idea choose the system runtime in the first place, if it's bound to break actual features?

The JetBrains devs are the only ones that can answer that.

There have been bugreports for java apps where the answer was : we only support JBR and that doesn't have this issue. bug closed.


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

#5 2024-08-31 13:14:18

mine_diver
Member
Registered: 2024-03-18
Posts: 60

Re: [SOLVED] Can't change boot Java runtime for IntelliJ IDEA Community

This seems to have been resolved with IntelliJ 2024.2.0.2, as it now recommends switching from "idea.sh" to the binary "idea", which natively supports changing the boot runtime. Marking as solved.

Last edited by mine_diver (2024-08-31 13:14:49)

Offline

Board footer

Powered by FluxBB