Getting Chrome Browser in java Applications

2019-02-08 20:59发布

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

5条回答
老娘就宠你
2楼-- · 2019-02-08 21:22

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

查看更多
三岁会撩人
3楼-- · 2019-02-08 21:26

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).

查看更多
爷的心禁止访问
5楼-- · 2019-02-08 21:42

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.

查看更多
淡お忘
6楼-- · 2019-02-08 21:47

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

查看更多
登录 后发表回答