Reputation: 5472
I am trying to implement an autocomplete Combo in SWT using AutocompleteComboInput. I have added net.sf.swtaddons_0.1.1_bin_src.jar 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 class is not found during runtime.
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.
Upvotes: 0
Views: 224
Reputation: 5472
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:
Upvotes: 1