-->

Getting Chrome Browser in java Applications

2019-02-08 20:43发布

问题:

Is there a way to get the Chrome browser inside of java applications similar to the way Awesomium works in C++ and C# applications?

回答1:

There is currently no way getting the UI portion into a Java. You should consider just using barebone WebKit + V8 with many JNI calls. You could consider writing a JNA wrapper around those.

To make your JNA easier, you can wrap Chromium Embedded Framework



回答2:

There's a Java Wrapper for the Chromium Embedded Framework (CEF).



回答3:

Try javacef. This is open source project. This project can embed Chromium browser in Java SWT with multitab browser support, cookies manipulation, tab settings, printing, back, forward, refresh buttons and enhanced file download. This project is based on Chromium Embedded Framework (CEF).



回答4:

My name is Vladimir. I'm a developer at TeamDev Ltd. Recently we released JxBrowser 4 library that allows embedding Chromium web browser component into Java Swing applications.

Compared to CEF Java Wrapper, JxBrowser provides totally lightweight Swing Browser component that renders web pages. Actually Chromium engine renders web page content itself off-screen and JxBrowser just displays the result, so web page looks exactly as in Google Chrome application.

You can see how it works via JxBrowser Online Demo.



回答5:

i finally succeed to update the old code (11/2010) with the last CEF1 06/2013, last code can be retrived here CefJavaWrapper