Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » SWT libraries missing from install(Plugins that depend on SWT have stopped working)
SWT libraries missing from install [message #1795337] Thu, 20 September 2018 14:13 Go to next message
Doug Orr is currently offline Doug OrrFriend
Messages: 21
Registered: July 2009
Junior Member
I tried today to upgrade my IDE to the the following version:
Eclipse Modeling Tools
Version: 2018-09 (4.9.0)
Build id: 20180917-1800

A plugin that I developed will no longer compile. The Actions dialog is unable to import the following libraries:
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.FileDialog;

The jar "org.eclipse.swt_3.108.0.v20180904-1901.jar" is in my plugin dependencies but it seems to contain no classes.
Re: SWT libraries missing from install [message #1795478 is a reply to message #1795337] Mon, 24 September 2018 05:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33108
Registered: July 2009
Senior Member
The actually classes are always associated with the OS-specific fragment. How did you set up your project's classpath?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: SWT libraries missing from install [message #1795584 is a reply to message #1795478] Tue, 25 September 2018 15:05 Go to previous messageGo to next message
Doug Orr is currently offline Doug OrrFriend
Messages: 21
Registered: July 2009
Junior Member
I don't understand the reference to "OS-specific fragment". I was able to build the workbench instance of the plugin by adding "org.eclipse.swt.win32.win32.x86_64_3.108.0.v20180904-1901.jar" as a Referenced Library in the build path but the Export still fails. How do I add the missing library to the Plug-in Dependencies for the Export?
Re: SWT libraries missing from install [message #1795586 is a reply to message #1795584] Tue, 25 September 2018 15:59 Go to previous messageGo to next message
Doug Orr is currently offline Doug OrrFriend
Messages: 21
Registered: July 2009
Junior Member
I also notice that if I create an ecore model and generate the code from the genmodel, the generated ActionBarContributor has an error because it cannot find the swt library.

Is this because I have downloaded the 64-bit version for Windows 10? It looks as though the problem would be resolved if I could select org.eclipse.swt.win32.win32.x86_64_3.108.0.v20180904-1901.jar as a Plug-in Dependency but the dependency editor of plugin.xml will not allow it.
Re: SWT libraries missing from install [message #1795601 is a reply to message #1795586] Wed, 26 September 2018 05:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33108
Registered: July 2009
Senior Member
Normally one just adds a dependency on the org.eclipse.swt bundle to the MANIFEST.MF and that implicitly creates a dependency on the appropriate OS-specific fragment, where all the implementation classes are actually present. I assume you created an 64 bit installation and are using a 64 bit JRE in that installation. Is that correct? What does your MANIFEST.MF for the problematic plugin look like?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: SWT libraries missing from install [message #1795889 is a reply to message #1795601] Tue, 02 October 2018 02:06 Go to previous messageGo to next message
Doug Orr is currently offline Doug OrrFriend
Messages: 21
Registered: July 2009
Junior Member
I have attached a manifest from a simple EMF Editor plug-in that was generated from an ecore genmodel file. The ActionBarContributor java file that was generated as the following compile error:
"The type org.eclipse.swt.events.HelpListener cannot be resolved. It is indirectly referenced from required .class
files"
  • Attachment: MANIFEST.MF
    (Size: 0.82KB, Downloaded 287 times)
Re: SWT libraries missing from install [message #1795896 is a reply to message #1795889] Tue, 02 October 2018 05:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33108
Registered: July 2009
Senior Member
The emf.edit.ui plugin re-expects SWT, but you could try explicitly adding it (org.eclipse.swt) nevertheless. But I think you already tried that?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: SWT libraries missing from install [message #1809931 is a reply to message #1795337] Thu, 25 July 2019 19:03 Go to previous message
williamn wil is currently offline williamn wilFriend
Messages: 1
Registered: July 2019
Junior Member
It looks as though the problem would be resolved if I could select org.eclipse.swt.win32.win32.x86_64_3.108.0.v20180904-1901.jar as a Plug-in Dependency but the dependency editor of plugin.xml will not allow it.
this one seems too legit and am trying now. Ill let you guys know more about it :)

Thank You,
Karn
Previous Topic:Launch Product with GTK2 form Eclipse started with GTK3
Next Topic:help with line-wrap
Goto Forum:
  


Current Time: Tue Mar 19 10:15:05 GMT 2024

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

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

Back to the top