GraphStream Users

Archives de la liste Aide

Re: GraphStream help

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: graphstream-users AT, Vladimir Gligorijevic <vgligorijevic AT>
  • Subject: Re: GraphStream help
  • Date: Thu, 12 Jan 2012 15:24:49 +0100

Hi Vladimir,

Welcome to our community.

Can you describe me how you generate your jar ?

A valid way to create a runnable jar, launching the
class "your.package.Main" of your Eclipse project
"MyGSProject", and using GraphStream should be :

1. Run "your.pacckage.Main" from Eclipse to create a
   launch configuration.

2. Go to "File > Export" and select "Java > Runnable Jar"
  2.1 Choose the launch configuration linked to your class
  2.2 Choose the output jar path
  2.3 Select "Extract required libraries into generated JAR"
  2.4 Click on "Finish"

This should create a valid jar. If not, check if gs-core 
is included in the build path of "MyGSProject".

Hope this helps. Tell me if not and if you need more help.

2012/1/12 Vladimir Gligorijevic <vgligorijevic AT>

I am using your GraphStram Java library mainly for visualization network growth and is very helpful and pretty awesome...
but, I have one problem. I'm using eclipse and when I make a .jar file and run it from my terminal I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/graphstream/graph/Graph
Caused by: java.lang.ClassNotFoundException: org.graphstream.graph.Graph
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
Could not find the main class: eccs2010.Tutorial1. Program will exit.

So, I don't now what is wrong but I would be very grateful if could you please help me to solve this or give me some tip. (also, I should menshon )

Thank you in advance!



Guilhelm Savin
PhD Student of Computer Science

  • GraphStream help, Vladimir Gligorijevic, 12/01/2012
    • Re: GraphStream help, guilhelm savin, 12/01/2012

Archives gérées par MHonArc 2.6.16.

Top of page