15

Is it possible to render webpages with WebKit through a Java application?

P.S. I want it to be compatible with Windows, Linux and Mac Os X.

2
  • 1
    possible duplicate of Embeding Gecko/Webkit in Java Commented Sep 24, 2013 at 15:25
  • Can you give somewhere url for WEBKIT program and jar file. Commented Feb 16, 2015 at 5:37

3 Answers 3

15

Qt WebKit with Qt Jambi. Supports Windows, Linux and Mac.

Sign up to request clarification or add additional context in comments.

3 Comments

Jambi appears to be dead.
JCEF tracks the most current webkit and I assume JavaFX is fairly up to date. Qt Webkit is 3 years old now and QtJambi may as well be dead as it is rarely developed (though the tiny group working on it is active and willing they are still on Qt 4.8). With recent updates to SSL, more javascript, and a variety of other changes for security,bugs;etc., I would not expect these tools to work reliably much longer. For chromium there is also Selenium but it leaks memory like none other and has a hard time closing when multiple instances are running.
JavaFX WebView is based on WebKit, but as Andrew said it hasn't been updated for years. As alternative solution I recommend that you take a look at JxBrowser library — teamdev.com/jxbrowser. It's based on Chromium engine and it's updated regularly. JCEF by the way is based on Chromium engine as well.
8

In JavaFX is included in Java 7. This contains WebView which is based on WebKit.

http://docs.oracle.com/javafx/2/webview/jfxpub-webview.htm

2 Comments

JavaFx is one of the worst UI Tool Kits , I have worked with especially Webview/WebEngine. It made my application crash frequently. I wouldn't advise anyone doing any serious work to adopt javafx webview.
How do I use JavaFX in LWJGL window? Separate WebKit is not the same thing as GUI framework. This doesn't answer the question.
3

WebKit via SWT

Also see

Previously answered question

and

jxBrowser

6 Comments

I want it to be compatible with Windows, Linux and Mac Os X.
Well look at the other links I provided.
thanks but it seems that there is not gonna be a free version that I could use for Java. I'll have to use a different language for this part instead.
Yes, not too surprising. Webkit is all native code after all. And has evolved rapidly. The combination doesn't make for a very stable JNI wrapper
BTW you might want to avoid reposting substantially the same question
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.