Menu

#75 Can't get/edit content of JWebBrowser

v1.0_(example)
open
nobody
None
1
2017-02-23
2017-02-12
Drake Roxas
No

Hi,

I can load pages with JWebBrowser and have a graphical result but it return nothing with getHTMLContent and don't execute command with executeJavascript.

I tried with the Demo and it don't work neither

I use a Linux x64 (with needed swt.jar) and absolutly don't know what I can share to help, almost everything is in demo but just do nothing

Discussion

  • Christopher Deckers

    Hi,

    For Linux, you need to follow some instructions to get a runtime.
    The SWT FAQ has some information:
    https://www.eclipse.org/swt/faq.php#browserlinux

    You might have to set some system properties like nativeswing.webbrowser.runtime or nativeswing.webbrowser.xulrunner.home (you can refer to SystemProperties-SWT.txt)

    Hope this helps,
    -Christopher

     
  • Christopher Deckers

    Oops, I just realized I might have misunderstood: when you say you have a graphical result, you mean that you see the application but the web browser content is always empty, or you actually see some content HTML?

    -Christopher

     

Log in to post a comment.

MongoDB Logo MongoDB