Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » SWT application would not start under Ubuntu(seems like something needs additional configuration)
SWT application would not start under Ubuntu [message #1751822] Sun, 15 January 2017 08:12
Michail Vokhm is currently offline Michail VokhmFriend
Messages: 11
Registered: November 2014
Junior Member
I'm trying to port an SWT desktop application to Ubuntu. Have downloaded Eclipse Neon (6.4.2) for Ubuntu and swt-4.6.2-gtk-linux-x86_64.zip, configured libraries in the project build path to point to the swt.jar from the downloaded swt zip.
Eclipse works fine, the application gets compiled, but crashes when trying to execute the following line of the code:

        Display display = Display.getDefault();
 

It's the very first call to the SWT in the program.
Eclipse writes to console the following message :
Toggle Spoiler
[/align]
Ubuntu 16.04 LTS. Under Windows, the application works fine.
What may be the reason and how can I fix it?

PS A rather strange thing. When it is packed to jar outside the Ubuntu (under Windows, along with the Linux SWT and Jar-in-Jar loader), this Jar starts to work under Ubuntu, exept the file open dialog, that draws just an empty window instead of the dialog. It behaves this way 2 (two) times. The third time I start it it crushes again with the same message (
(SWT:3351): GLib-GObject-WARNING
etc). Restarting Ubuntu and setting
SWT_GTK3=0
don't affect.

PPS Ubuntu is running in Hyper-V under Windows2008, if it matters...

[Updated on: Sun, 15 January 2017 08:14]

Report message to a moderator

Previous Topic:Problems with Netsuite IDE and Content Assist/Proposals
Next Topic:cannot see Activiti Diagram in Eclipse
Goto Forum:
  


Current Time: Fri Apr 19 20:09:12 GMT 2024

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

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

Back to the top