java – Updating SWT WebKit for Xowa (offline WIkipedia application) Error in 22.04 with possible Eclipse issue

I am getting an error when I try to start an application called Xowa (for offline Wikipedia). I do have Eclipse already installed but have never used it so I don’t know the settings or anything like that.

OS: linux
Java: 21.0.7 (64 bit)
Java path: 21.0.7
XOWA: 4.6.12.2009
XOWA path: /home/kim/Downloads/xowa_app_linux_64_v4.6.12.2009/xowa_linux_64.jar

Error: org.eclipse.swt.SWTError: No more handles because there is no underlying browser available.
Please ensure that WebKit with its GTK 3.x bindings is installed (WebKit2 API level is preferred). Additionally, please note that GTK4 does not currently have Browser support.

Stack: org.eclipse.swt.SWT.error(SWT.java:4749)
org.eclipse.swt.browser.Browser.(Browser.java:120)
gplx.gfui.kits.swts.Swt_html.(Unknown Source)
gplx.gfui.kits.core.Swt_kit.New_html(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm.Make_html_box(Unknown Source)
gplx.xowa.guis.views.Xog_tab_mgr.Tabs_new(Unknown Source)
gplx.xowa.guis.views.Xog_tab_mgr.Tabs_new_init(Unknown Source)
gplx.xowa.guis.views.Xog_launcher_tabs.Launch_tab(Unknown Source)
gplx.xowa.guis.views.Xog_launcher_tabs.Restore_tab_failover(Unknown Source)
gplx.xowa.guis.views.Xog_launcher_tabs.Launch(Unknown Source)
gplx.xowa.guis.views.Xog_tab_itm_read_mgr.Launch(Unknown Source)
gplx.xowa.guis.Xoa_gui_mgr.Run(Unknown Source)
gplx.xowa.apps.boots.Xoa_boot_mgr.Run_app(Unknown Source)
gplx.xowa.apps.boots.Xoa_boot_mgr.Run(Unknown Source)
gplx.xowa.Xoa_app_.Run(Unknown Source)
gplx.xowa.Xowa_main.main(Unknown Source)

Also,

SWT Webkit: Warning, You are using an old version of webkitgtk. (pre 2.4) BrowserFunction functionality will not be avaliable
SWT WebKit: error initializing DBus server, dBusServer == 0

I already tried How to install webkitgtk-6.0 in Ubuntu 22.04 and ran the follwing (other suggested versions of libwebkitgtk are not found by apt):

sudo apt install libwebkitgtk-6.0-4
sudo apt install libwebkitgtk-6.0-dev

Read more here: Source link