I am working to show two edges on two nodes if there are more than one edge. I am following this example. But I am facing an exception:
Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/convert/WrapAsScala at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.graphstream.ui.view.Viewer.newGraphRenderer(Viewer.java:349) at org.graphstream.graph.implementations.AbstractGraph.display(AbstractGraph.java:753) at org.graphstream.graph.implementations.AbstractGraph.display(AbstractGraph.java:747) at com.h2Database.app.ahd.main(ahd.java:18) Caused by: java.lang.ClassNotFoundException: scala.collection.convert.WrapAsScala at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 6 more
my code is :
import org.graphstream.graph.*;
import org.graphstream.graph.implementations.*;
import org.graphstream.ui.view.Viewer;
public class ahd {
public static void main(String args[]) {
Graph graph = new MultiGraph("Test");
System.setProperty("org.graphstream.ui.renderer", "org.graphstream.ui.j2dviewer.J2DGraphRenderer");
graph.addNode("A");
graph.addNode("B");
graph.addEdge("1", "A", "B", true);
graph.addEdge("2", "A", "B", true);
Viewer viewer = graph.display();
}
}
Any idea, why I am facing this ? It seems that in given example this issue is resolved.
gs-core
andgs-ui
you are using. – Yoann