Я пытаюсь использовать JaCoP в проекте Eclipse.Я импортировал библиотеки, и он отображается в пути сборки, приложение прекрасно компилируется, но когда он достигает точки, где требуется библиотека, я получаю следующую ошибку:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdom/Content
at layout.MainLayoutManager.<init>(MainLayoutManager.java:14)
at gui.Instance.<init>(Instance.java:48)
at handler.Main.createNewInstance(Main.java:59)
at handler.Main$2.actionPerformed(Main.java:111)
Код, который вызываетошибка
package layout;
import graph.Cell;
import graph.Vertex;
import interfaces.LayoutManager;
import java.util.ArrayList;
import JaCoP.core.Store;
public class MainLayoutManager implements LayoutManager {
ArrayList<CPVertex> vertexList = new ArrayList<CPVertex>();
Store store = new Store();
public MainLayoutManager() {
}
public void sortGraph(Cell[] cells) {
for (int i=0; i<cells.length; i++) {
if (cells[i].getType() == Cell.VERTEX) {
vertexList.add(new CPVertex((Vertex) cells[i]));
}
}
}
}
В частности, строка
Store store = new Store();
Я был бы очень признателен за любую помощь в решении этой ошибки.