2014-04-04 1 views
0

AutocompleteComboInput을 사용하여 SWT에 자동 완성 콤보를 구현하려고합니다. "Add External JAR"을 통해 net.sf.swtaddons_0.1.1_bin_src.jar을 라이브러리에 추가했습니다.SWT 추가 기능 (AutocompleteComboInput)을 사용하는 동안 java.lang.NoClassDefFoundError

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 

그러나 나는 NoClassDefFoundError을 얻고 있습니다. 내가 읽었을 때, 그것은 a class is not found during runtime 인 것 같습니다.

"런타임 클래스 경로"에 대해 뭔가 할 필요가 있다고 생각하지만 길을 잃습니다. 이클립스 IDE에서 이것을 해결하는 방법에 대한 단계가 인정된다.

답변

0

이 문제에 대한 해결책을 찾았습니다.

  • 이클립스 춘분 - 공통 3.5.0.jar
  • org.eclipse.core.commands.jar :

    외에도 net.sf.swtaddons_0.1.1_bin_src.jar에서, 3 다른 JAR 파일은 여전히 ​​라이브러리에 추가 할 필요했다

  • org.eclipse.jface-3.6.0.jar
관련 문제