Getting Chrome Browser in java Applications

天涯浪子 提交于 2019-11-29 13:26:35

问题


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



来源:https://stackoverflow.com/questions/7244653/getting-chrome-browser-in-java-applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!