java.lang.NoClassDefFoundError while using SWT Add-on (AutocompleteComboInput)


I am trying to implement an autocomplete Combo in SWT using <a href="http://www.mirrorservice.org/sites/downloads.sourceforge.net/s/sw/swtaddons/swtaddons/SWT%20Add-ons%200.1.1/SWTAddons-Documentation-0.1.1.html" rel="nofollow">AutocompleteComboInput</a>. I have added <a href="http://sourceforge.net/projects/swtaddons/files/swtaddons/SWT%20Add-ons%200.1.1/" rel="nofollow">net.sf.swtaddons_0.1.1_bin_src.jar</a> to the library via "Add External JAR".

import net.sf.swtaddons.autocomplete.combo.AutocompleteComboInput; ... subjectCodeCombo = new Combo(tab3Composite, SWT.DROP_DOWN); // other code modifying Combo appearance here... // returns a String[] of items retrieved from database String[] subjectCodeArray = dbQuery.subjectsToArray(); subjectCodeCombo.setItems(subjectCodeArray); subjectCodeCombo.setText("- SELECT -"); new AutocompleteComboInput(subjectCodeCombo); // throws an error

However, I am getting a NoClassDefFoundError. As I have read, it seems <a href="https://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java" rel="nofollow">a class is not found during runtime</a>.

I believe I need to do something about the "runtime classpath", but I am lost. Steps on how to resolve this in Eclipse IDE is appreciated.


I have found the solution to this problem.

Apart from net.sf.swtaddons_0.1.1_bin_src.jar, 3 other JARs were still needed to be added to the Library:

<ul><li>eclipse-equinox-common-3.5.0.jar</li> <li>org.eclipse.core.commands.jar</li> <li>org.eclipse.jface-3.6.0.jar</li> </ul>


  • “[notice] child pid XXXX exit signal Segmentation fault (11)” in apache error.log
  • How to add Perspective Bar Switcher to pure eclipse 4 rcp application
  • How to import database data into combo box in javafx
  • Looking for Hosted Subversion and Visual Studio plug in combo [closed]
  • Changing complete lists of content in Combo Boxes
  • SWT Combo and CCombo as CellEditor
  • Qt - Set display text of non-editable QComboBox
  • Searching a Mercurial repository (TortoiseHG)?
  • Passing Values Between Forms using OpenArgs
  • Run macro when clicking on hyperlink that directs to another worksheet
  • Ruby: group_by operation on an array of hashes
  • VB.NET Controls inside of a DataGridView Row on a Windows Form
  • python use variable in regex as repetition amount
  • ASP.NET - Google Chrome caching DropDownList selections
  • Making drop down list in ASP.Net by foreach loop
  • How to efficiently generate all combinations (at all depths) whose sum is within a specified range
  • how to set values to combobox dynamically in javascript
  • Extjs - Combo with Templates to Display Multiple Values
  • Set tooltip text for each element in an SWT Combo widget
  • I have a stored procedure that needs to pull info from the same table twice. How do I use Correlatio
  • XmlDictionaryReader reading fixed-size zeroed Stream
  • R: Mapping positive and negative numbers with different colors
  • How define differents stores for each cell combobox editor in a grid?
  • Get back anonymous type [duplicate]
  • How can I organize this data into the objects I want with LINQ?
  • Detecting a shift + click with Jquery on Chrome
  • How to show a specific VC , more like navigate to a stack of VC
  • Change border corlor of NSTableView
  • proxy request in node.js / express
  • How to protect the mp3 file from read or copy on Android?
  • Nested projects in multiproject visual studio templates
  • Why winpcap requires both .lib and .dll to run?
  • Return words with double consecutive letters
  • Python: how to group similar lists together in a list of lists?
  • Benchmarking RAM performance - UWP and C#
  • Acquiring multiple attributes from .xml file in c#
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • How can I remove ASP.NET Designer.cs files?
  • Busy indicator not showing up in wpf window [duplicate]
  • java string with new operator and a literal