Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:15 Go to next message
girijanandan nucha is currently offline girijanandan nuchaFriend
Messages: 25
Registered: January 2019
Location: Bangalore, India
Junior Member
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 11:53 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
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 12:42 Go to previous messageGo to next message
girijanandan nucha is currently offline girijanandan nuchaFriend
Messages: 25
Registered: January 2019
Location: Bangalore, India
Junior Member
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 13:34 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 951
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: GEF 5.1.0 compatibilty with gtk3 [message #1818473 is a reply to message #1818448] Tue, 17 December 2019 04:33 Go to previous messageGo to next message
girijanandan nucha is currently offline girijanandan nuchaFriend
Messages: 25
Registered: January 2019
Location: Bangalore, India
Junior Member
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 05:30 Go to previous messageGo to next message
girijanandan nucha is currently offline girijanandan nuchaFriend
Messages: 25
Registered: January 2019
Location: Bangalore, India
Junior Member
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 06:56 Go to previous message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
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 06:56]

Report message to a 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 Oct 05 18:52:24 GMT 2022

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

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

Back to the top