Skip to main content



      Home
Home » Eclipse Projects » GEF » GEF 5.1.0 compatibilty with gtk3(GEF 5.1.0 compatibilty with gtk3)
GEF 5.1.0 compatibilty with gtk3 [message #1818442] Mon, 16 December 2019 06:15 Go to next message
Eclipse UserFriend
Hi All,

I am working on a product which is based out of Eclipse 4.12 (Pre-requisite is GTK 3), and using GEF 5.1.0.

While using GEF features of the product in Linux, software was crashing.
Then I tried passing --launcher.GTK_version = 2 option for launcher. This has solved the crash issue but its giving way to other issues.

Hence, I want to ask following questions.
Is GEF 5.1.0 compatible with GTK 3 ?
If not, what is the work around for this ?

Thanks and Regards,
Giri
Re: GEF 5.1.0 compatibilty with gtk3 [message #1818445 is a reply to message #1818442] Mon, 16 December 2019 06:53 Go to previous messageGo to next message
Eclipse UserFriend
Which Java version are you using? GEF itself does not have native artifacts, as such, the question of GTK compatibility is related to JavaFX alone. AFAIK it requires at least Java 9 to have proper support for GTK 3.
Re: GEF 5.1.0 compatibilty with gtk3 [message #1818446 is a reply to message #1818445] Mon, 16 December 2019 07:42 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the quick reply.

I am using Java 8. Does usage of FXCanvas widget has something to do with incompatibility with GTK 3 ?
Re: GEF 5.1.0 compatibilty with gtk3 [message #1818448 is a reply to message #1818446] Mon, 16 December 2019 08:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

On Linux, I had to use Java 9+ to make it work past 2018-12. SWT dropped the support for GTK 2 at this point, and JavaFX only supports GTK 3 in versions 9+

So what you need is a consistent set of SWT/JavaFX versions: SWT < 2018-12 for GTK2 support, or JavaFX >= 9 for GTK3 support; then GEF should work.

HTH,
Camille
Re: GEF 5.1.0 compatibilty with gtk3 [message #1818473 is a reply to message #1818448] Mon, 16 December 2019 23:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi Camille,

Thanks for the reply. I will with Java 9 and let you know.

Giri
Re: GEF 5.1.0 compatibilty with gtk3 [message #1818534 is a reply to message #1818473] Thu, 19 December 2019 00:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi Camille,

Problem is solved if I use Java 9. But the issue is, I need to stick to Java 8 due to some customer regulations.
Are there any specific widgets in JavaFX which needs Java 9, may i can find a replacement for those widgets which will work with Java 8.

Thanks,
Giri
Re: GEF 5.1.0 compatibilty with gtk3 [message #1818539 is a reply to message #1818534] Thu, 19 December 2019 01:56 Go to previous message
Eclipse UserFriend
When using GEF inside Eclipse, the JavaFX-SWT integration is employed. As Camille already pointed out, SWT dropped support for GTK2 with the 2018-12 release. On the other hand, JavaFX added support for GTK3 not before version 9. If you want to stick to Java-8, you will have to stick to GTK2 and thus to an oder version of Eclipse/SWT.

[Updated on: Thu, 19 December 2019 01:56] by Moderator

Previous Topic:Generate a tree node with icon and multiline text using GEF
Next Topic:Displaying the label/text in canvas for polyline figure
Goto Forum:
  


Current Time: Wed Apr 30 04:12:11 EDT 2025

Powered by FUDForum. Page generated in 0.09885 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top