GraphStream Users

Archives de la liste Aide


Re: Problem in installing graphstream


Chronologique Discussions 
  • From: Stefan Balev <stefan.balev AT gmail.com>
  • To: graphstream-users AT litislab.fr, Happy Mittal <happy2332 AT gmail.com>
  • Subject: Re: Problem in installing graphstream
  • Date: Sat, 16 Feb 2013 15:16:31 +0100

Hi,

graphstream is not an application you can run, it is an API that helps you write your own graph processing applications. To get started, write a simple class, something like

import org.graphstream.graph.Graph;
import org.graphstream.graph.implementations.SingleGraph;

public class HelloGraph {
    public static void main(String[] args) {
        Graph graph = new SingleGraph("Hello");
        graph.addNode("A);
        graph.addNode("B");
        graph.addEdge("AB", "A", "B");
        graph.display();
    }
}

Now compile it, run it and have fun!

Best,

--
Stefan



2013/2/16 Happy Mittal <happy2332 AT gmail.com>
Hi graphstream,
  I have just downloaded graphstream from http://graphstream-project.org/media/data/gs-ui-1.1.2.zip, the I unzipped it.
In your FAQ - How do I install?, you have written
"Simply download the zip or tar.bz2 packages on the Download section of this website. This file contains a binary jar package and the API documentations. Point your classpath to these classes and you're done"

But I can't really understand this. I am working on Linux.
I have added following line in .bashrc file for setting the classpath, but it doesn't seem to work.
export CLASSPATH=~/Desktop/gs-ui-1.1.2/gs-ui-1.1.2.jar:~/Desktop/gs-ui-1.1.2/gs-ui-1.1.2-javadoc.jar:~/Desktop/gs-ui-1.1.2/gs-ui-1.1.2-sources.jar:$CLASSPATH

When i run the command : java -jar gs-ui-1.1.2.jar, it gives an error : Failed to load Main-Class manifest attribute from
gs-ui-1.1.2.jar

What should I do ?

Regards
Happy Mittal




Archives gérées par MHonArc 2.6.16.

Top of page