Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable JCEF in Intellij IDEA?

I have the latest version of Intellij IDEA, but it doesn't have built-in JCEF. The com.intellij component was not found. What is the problem and where is the documentation for JCEF in Intellij? I only found a minimal example, but not the actual documentation.

Intellij IDEA:

IntelliJ IDEA 2022.2.3 (Community Edition)
Build #IC-222.4345.14, built on October 5, 2022
Runtime version: 17.0.4.1+7-b469.62 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 7 6.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1010M
Cores: 4
Non-Bundled Plugins:
    com.intellij.javafx (1.0.4)

Kotlin: 222-1.7.10-release-334-IJ4345.14

In Tools > Internal Actions > Registry... > ide.browser.jcef.enabled

I'm using Oracle's JDK 19 but tried with Jet Brains Runtime 17.0.4 too, doesn't work either. JCEF didn't show up.

I try to paste this piece of code and import classes, but it does not find them:

JBCefBrowser myBrowser = new JBCefBrowser(myUrl);
CefBrowser myDevTools = myBrowser.getCefBrowser().getDevTools();
JBCefBrowser myDevToolsBrowser = new JBCefBrowser(myDevTools,
        myBrowser.getJBCefClient());
like image 284
Dmitriy Avatar asked Oct 15 '25 02:10

Dmitriy


1 Answers

Instructions in android studio are:

  1. Go to help -> Find Action
  2. Type -> 'Choose Boot Java Runtime for the IDE'
  3. From the dropdow 'New' select a Boot runtime wich support JCEF browser
  4. Select and restart

I guess in Intellij will be the same thing

like image 65
Yago Avatar answered Oct 17 '25 17:10

Yago



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!