bonsoir
je veux utilisé une API de graphisme(graphstream) pour java d'apré la documentation pour installé cette API il faut configuré le classpath ,donc j'ai ajouté le fichier graphstream.jar dans le path
C:\GraphStream-0.4.2\graphstream.jar
j'ai essayé de compiler le programme suivant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import org.miv.graphstream.graph.Graph;

public class Test
{
        public static void main( String args[] )
        {
                Graph graph = new DefaultGraph( "Hello, world!", false, true );

                graph.addEdge( "AB", "A", "B" );
                graph.addEdge( "BC", "B", "C" );
                graph.addEdge( "CD", "C", "D" );
                graph.addEdge( "DA", "D", "A" );
                graph.addEdge( "AC", "A", "C" );
                graph.addEdge( "BD", "B", "D" );

                graph.display();
        }
}
il m'affiche des erreurs de compilation
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
C:\>javac Test.java
Test.java:1: package org.miv.graphstream.graph does not exist
import org.miv.graphstream.graph.Graph;
                                ^
Test.java:7: cannot find symbol
symbol  : class Graph
location: class Test
                Graph graph = new DefaultGraph( "Hello, world!", false, true );
                ^
Test.java:7: cannot find symbol
symbol  : class DefaultGraph
location: class Test
                Graph graph = new DefaultGraph( "Hello, world!", false, true );
                                  ^
3 errors