jcef | Chromium Embedded Framework for Java Language | Plugin library

 by   doraig Java Version: 78.1-win64 License: Non-SPDX

kandi X-RAY | jcef Summary

kandi X-RAY | jcef Summary

jcef is a Java library typically used in Plugin applications. jcef has no vulnerabilities, it has build file available and it has low support. However jcef has 62 bugs and it has a Non-SPDX License. You can download it from GitHub, Maven.

CEF is a BSD-licensed open source project founded by Marshall Greenblatt in 2008 and based on the Google Chromium project. Unlike the Chromium project itself, which focuses mainly on Google Chrome application development, CEF focuses on facilitating embedded browser use cases in third-party applications. CEF insulates the user from the underlying Chromium and Blink code complexity by offering production-quality stable APIs, release branches tracking specific Chromium releases, and binary distributions. Most features in CEF have default implementations that provide rich functionality while requiring little or no integration work from the user. There are currently over 100 million installed instances of CEF around the world embedded in products from a wide range of companies and industries. A partial list of companies and products using CEF is available on the CEF Wikipedia page. Some use cases for CEF include:. CEF supports a wide range of programming languages and operating systems and can be easily integrated into both new and existing applications. It was designed from the ground up with both performance and ease of use in mind. The base framework includes C and C++ programming interfaces exposed via native libraries that insulate the host application from Chromium and Blink implementation details. It provides close integration between the browser and the host application including support for custom plugins, protocols, JavaScript objects and JavaScript extensions. The host application can optionally control resource loading, navigation, context menus, printing and more, while taking advantage of the same performance and HTML5 technologies available in the Google Chrome Web browser. This project provides a Java Wrapper for CEF (JCEF).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              jcef has a low active ecosystem.
              It has 5 star(s) with 1 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              jcef has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of jcef is 78.1-win64

            kandi-Quality Quality

              OutlinedDot
              jcef has 62 bugs (3 blocker, 0 critical, 44 major, 15 minor) and 1666 code smells.

            kandi-Security Security

              jcef has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              jcef code analysis shows 0 unresolved vulnerabilities.
              There are 347 security hotspots that need review.

            kandi-License License

              jcef has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              jcef releases are not available. You will need to build from source code and install.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              It has 15677 lines of code, 1972 functions and 194 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed jcef and discovered the below as its top functions. This is intended to give you an instant insight into jcef implemented functionality, and help decide if they suit your requirements.
            • Creates the canvas
            • Initializes the OpenGL context
            • Creates the browser if needed
            • Renders the view
            • Returns a string representation of this request
            • Returns this object as a string
            • Returns a string representation of this post
            • Creates a new client
            • Initialize the context
            • Returns the screen point of the given browser
            • Invoked when the user wants to terminate a termination request
            • Returns the window handler
            • On a new browser after creation
            • Returns a view bounds rectangle
            • Invoked when a browser is closed
            • Called when the canvas is painted
            • Load the library
            • Close the dev tools
            • Close this window
            • Returns a string representation of this object
            • Returns a string representation of the CefCommand
            • Returns a textual representation of the response
            • Returns the window handle
            • Called after a command line has been parsed
            • Reform a focus focus
            • Update the bounds
            Get all kandi verified functions for this library.

            jcef Key Features

            No Key Features are available at this moment for jcef.

            jcef Examples and Code Snippets

            No Code Snippets are available at this moment for jcef.

            Community Discussions

            QUESTION

            JCEF (Java Chromium Embedded Framework) Browser does not load content; only blank screen on Eclipse
            Asked 2022-Mar-23 at 21:43

            I have been trying to get the Java version of Chromium Embedded Framework (JCEF) to work on Eclipse for some time. I am able to verify that the library files are working correctly, since if I run the included sample class files on the VM, the program runs and some webpage is displayed. However, if I run the program from Eclipse, the program will always display a blank window. I am able to verify that the library binary jcef_helper.exe is successfully run, but not matter how I link the .jar files and other library files, the webpage will not generate and there will always be a blank screen. I cannot pinpoint the issue here. I tried specifying path, adding the JCEF library path of my OS environment variables PATH field to no avail. I have followed the documentation, even sample files behave the same way when I have anything to do with compilation/ run. One note of interest, my Eclipse console will display this during run:

            ...

            ANSWER

            Answered 2022-Mar-23 at 21:43

            This answer was kindly provided by 'Yanovsky' at the JCEF forums. The simple example provided by the JCEF package is incomplete. We need to add a CefMessageRouter instance to our browser client. This is demonstrated in the detailed examples, but not the simple one. This code should be added before we create our CefBrowser instance and after we have created a CefClient object:

            Source https://stackoverflow.com/questions/70793829

            QUESTION

            Is it possible to interrupt a runnable called by ApplicationManager.getApplication().executeOnPooledThread?
            Asked 2021-Nov-01 at 10:06

            I am currently working on developing an IDEA extension that embeds JCEF for frontend interaction. Once the user clicks on a button, the implemented onQuery method in MessageRouterHandler would be executed, and a time-consuming task would be performed.

            The time-consuming task is implemented in a method (asynchronous on a thread other than the main thread in case the UI to be frozen) and is wrapped in a form like

            ...

            ANSWER

            Answered 2021-Nov-01 at 10:06

            A time consuming task should be performed under a progress indicator, see com.intellij.openapi.progress.ProgressManager. During the task you can then call com.intellij.openapi.progress.ProgressManager#checkCanceled to see if the task has been canceled by the user. This call is supposed to be cheap, so you can call it often to make sure your process responds promptly to the users' request for cancellation.

            Source https://stackoverflow.com/questions/69777679

            QUESTION

            Selenium screenshot performance
            Asked 2021-Oct-20 at 16:49

            I am processing animations taking place in a webpage in a video software. I am currently using Selenium 4 with Chrome and I'd like to achieve a better performance.

            I could not find a way to leverage the Page.startScreencast method via Selenium, so my current approach is simply taking periodic screenshots using

            ...

            ANSWER

            Answered 2021-Oct-20 at 16:49

            I too have struggled how to call startScreencast via Selenium interface however there are other libraries which allow you to do this; Selenium 4 is just a helper wrapper to abstract some of the complexities.

            Source https://stackoverflow.com/questions/69618780

            QUESTION

            Is there API of IDEA communicating with JCEF's webview when developing IDEA's plugin?
            Asked 2021-Oct-01 at 06:12

            I am currently preparing for developing an IDEA plugin involving webview containing some information. Since I have developed a VSCode extension of similar functionalities and it uses many webviews, I plan to migrate those HTML to IDEA's plugin by JECF.

            However, the functionalities require some interaction with the extension/plugin, as in VSCode I could click some elements of the webview and insert some texts into the editor by acquireVsCodeApi provided by VSCode itself. And I am not quite sure if such communication could be performed by using JCEF in the plugin of IDEA? (I am quite new to Jetbrain's plugin development and JAVA)

            Great thanks for any suggestions.

            ...

            ANSWER

            Answered 2021-Oct-01 at 06:12

            Yes, this is possible. One way to do this is to separate your plugin into three separate modules:

            1. A module containing the IDE-side plugin code.
            2. A module that contains the JCEF browser code.
            3. A module that acts as a message passing interface. This module will enable communication between the first two modules.

            See the IntelliJ PDF Viewer plugin for a good example, in particular the kotlinjs-migrate branch. Another good place to start - and to keep an eye on while you figure out how the pdf viewer plugin works - is the IntelliJ documentation page about JCEF. The section about the JBCefClient might especially be of interest to you, though it is rather minimal.

            Source https://stackoverflow.com/questions/69373896

            QUESTION

            Simulator Freezes With BrowserComponent
            Asked 2021-Mar-22 at 13:31

            I have a BrowserComponent that loads a specific URL.

            ...

            ANSWER

            Answered 2021-Mar-22 at 13:31

            This issue has been fixed in Git with this commit: https://github.com/codenameone/CodenameOne/commit/c4afc9d428a959e2f8dcf37594bed8ae81e467a2

            It will be included in the next Cn1 update this Friday.

            Source https://stackoverflow.com/questions/66718829

            QUESTION

            CN1 crash linked to skins?
            Asked 2021-Mar-17 at 01:58

            I just updated to the latest CN1 sources, but now I get the below error for a project that compiled just before. Any idea about is causing this issue?

            NB. I've activated CSS for this demo example since I'm trying debug an issue I have with that. Notice the line with "Failed loading the skin file: /iPhoneX.skin". I have reloaded the CN1 settings for this project, so the iPhoneX skin should be there as far as I understood.

            Sorry in advance if I did something stupid, I'm pretty nagged this evening :-)

            ...

            ANSWER

            Answered 2021-Mar-17 at 01:58

            If you're working from sources then the skin file for iPhoneX needs to be in the JavaSEPort/src. Normally the build script copies it but we've undergone some changes in our build process and it's possible this is no longer seamless.

            Source https://stackoverflow.com/questions/66662718

            QUESTION

            Simulator hangs con execute browserComponent.executeAndReturnString("navigator.userAgent"
            Asked 2021-Mar-11 at 03:24

            On simulator App hangs on execute browserComponent.executeAndReturnString("navigator.userAgent")

            ...

            ANSWER

            Answered 2021-Mar-11 at 03:24

            Although this API wasn't deprecated its usage is strongly discouraged in the JavaDocs in favor of this.

            Try:

            Source https://stackoverflow.com/questions/66560847

            QUESTION

            Journey browser Java Chromium Embedded framework throwing error?
            Asked 2021-Jan-03 at 21:57

            I am trying to use a library called Journey browser which uses the Java Chromium Embedded Framework. I first created a Java Maven Project with Netbeans and I edited the pom.xml to match the values on the library's guide, which is here: https://github.com/CodeBrig/Journey, to add the maven dependencies. (No errors detected by Netbeans) I then built the project to download the maven dependency and put their default code (modified slightly) in the main class. Netbeans found no errors in the code. However, when I run the project I get a "no chrome_elf in java.library.path". I think this has something to do with embedding JCEF, but I am not sure how to add this to the "java.library.path" in Netbeans.

            How do I fix this "chrome_elf" problem? Also, if I am able to fix this will it be an error for production if someone doesn't have "chrome_elf" installed?

            ...

            ANSWER

            Answered 2021-Jan-03 at 21:57

            For Windows

            This happens because the chrome_elf.dll (on Windows) file cannot be found.

            Java is looking for this file on java.library.path - which (on my machine, anyway) refers to all the locations referenced by the Windows %path% environment variable.

            One way to fix this is to download one of the pre-built distributions from that GitHub page (for example the Windows one, referred to here):

            Source https://stackoverflow.com/questions/65554199

            QUESTION

            JTextField in JFrame uneditable when using JCEF in JInternalFrame until JFrame loses focus
            Asked 2020-Nov-01 at 18:19

            I have started implementing JCEF in a project of mine, and I am initializing the embedded browser in a JInternalFrame inside of a JFrame, alongside a series of form fields on a JPanel next to the JInternalFrame. The browser component doesn't fully initialize until the JFrame actually becomes visible, and I'm finding that my JTextFields are uneditable unless the JFrame loses and regains focus.

            Any idea of what could be happening and how to fix it? This only happens when using a JInternalFrame with the JCEF component...

            It also happens every time I call loadURL to load a new page in the browser: the JTextFields become uneditable again, until I lose/gain focus in the JFrame.

            UPDATE: I have found a hack which allows the JTextFields to become editable again, but I wouldn't call it a solution because it is not very elegant. I added a load handler to the CefClient instance ( client.addLoadHandler(new CefLoadHandlerAdapter()) ) with an @Ovveride on the onLoadingStateChange method, which in turn gives access to the current browser component. From there I can detect when loading in the browser is complete, and use SwingUtilities to get the Window that the browser component is in. Then I setVisible(false) and setVisible(true) on that Window. I say it's not a solution because every time the browser is done loading the Window disappears and reappears. Even though the JTextFields are editable again, it is quite ugly to see the window flashing. I've tried all kinds of revalidate() and repaint() methods to no avail, unless I didn't call them right...

            ...

            ANSWER

            Answered 2020-Nov-01 at 12:52

            I figured out the problem by studying the sample JCEF application a little better. I need to implement a FocusHandler in order to release the embedded browser's hold on keyboard input:

            Source https://stackoverflow.com/questions/64622736

            QUESTION

            CEF not saving local storage data, when the application is shutdown
            Asked 2020-Oct-26 at 17:39

            I have created an application using JCEF. My application is using the localstorage for saving its settings. The problem I'm seeing, is that each time the application is closed, and restarted, all the data in the localstorage is discarded. I have tested using the CEFSimple app from multiple versions, (see my ticket here https://bitbucket.org/chromiumembedded/java-cef/issues/386/localstorage-is-empty-after-application), and the same problem is reproduced. So I'm suspecting a missing setting somewhere. Does anybody know, what is missing or can confirm this is a bug ?

            ...

            ANSWER

            Answered 2020-Oct-26 at 17:39

            I identified the root cause for this issue: the problem happens when setting a relative path in cache_path inside CefSettings. When I changed to an absolute path, the issue disapparead.

            Source https://stackoverflow.com/questions/64472553

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install jcef

            You can download it from GitHub, Maven.
            You can use jcef like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the jcef component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            Building JCEF - https://bitbucket.org/chromiumembedded/java-org.cef/wiki/BranchesAndBuildingSupport Forum - http://magpcss.org/ceforum/viewforum.php?f=17Donations - http://www.magpcss.org/ceforum/donate.php
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/doraig/jcef.git

          • CLI

            gh repo clone doraig/jcef

          • sshUrl

            git@github.com:doraig/jcef.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link