GraphStream Users

Archives de la liste Aide


Re: Utilisation des sources du dépot Git ?


Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT gmail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: Re: Utilisation des sources du dépot Git ?
  • Date: Thu, 7 Jul 2011 15:53:24 +0200

You can now use maven to compile gs-boids. But this is
an experimental project, needing lot of works ...

Run it with :

  MAVEN_OPTS="-Dsun.java2d.opengl=true" mvn exec:java -Dexec.mainClass="org.graphstream.boids.Context"


Le 7 juillet 2011 15:22, guilhelm savin <guilhelm.savin AT gmail.com> a écrit :
Did you try to compil from git repository clone or from sources
package available on the website ? Not sure that sources package
works with maven.

I got no error making package on my local repository. Do you install
the deps scalags of gs-deps ?

I will create a pom.xml for gs-boids.

Regards


Le 7 juillet 2011 12:10, Jean-Matthieu ETANCELIN <jeanmatthieu.etancelin AT insa-rouen.fr> a écrit :

Hi,

Maven works perfecly but there is a failure while compiling gs-ui. It seems that Scala is missing. 
I have installed gs-deps, gs-core gs-tool and gs-algo.

The error is (during mvn package in gs-ui ) : 
org.apache.maven.surefire.booter.SurefireExecutionException: scala/ScalaObject; nested exception is java.lang.NoClassDefFoundError: scala/ScalaObject
java.lang.NoClassDefFoundError: scala/ScalaObject
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:87)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.ClassNotFoundException: scala.ScalaObject
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 20 more


Otherwise, I would try gs-boids but there is no pom.xml file. I tried to compile myself with adding the gs-**.jar in the classpath but it doesnt work.

Thanks

Regards,

--
Jean-Matthieu ETANCELIN
Ingénieur Génie Mathématique
Promotion 2011
INSA de Rouen
-
Master 2 MATIS
Université du Havre



2011/7/6 guilhelm savin <guilhelm.savin AT gmail.com>
Hi,

GraphStream is using Maven2. There is a pom.xml file that describes
the project and how to build it.

To make a jar, just use the following command :

  mvn package

this will create a jar gs-xxx-1.0.jar in the 'target' directory.
To install the jar in your maven repository :

  mvn install

Do not forget to start by installing gs-deps, composed of three.
subprojects : mbox2, pherd and util.

Using Maven is recent so please report problems you might encounter
with it.

Regards.

Le 6 juillet 2011 12:29, Jean-Matthieu ETANCELIN <jeanmatthieu.etancelin AT insa-rouen.fr> a écrit :

Bonjour

Je souhaiterais utiliser les sources du dépôt pour une application. Il n'y a pas de Makefile, ou Ant dans le répertoire, comment puis-je compiler la librairie pour en faire un .jar ?

Merci
Cordialement,

--
Jean-Matthieu ETANCELIN
Ingénieur Génie Mathématique
Promotion 2011
INSA de Rouen
-
Master 2 MATIS
Université du Havre





--
Guilhelm Savin
PhD Student of Computer Science





--
Guilhelm Savin
PhD Student of Computer Science




--
Guilhelm Savin
PhD Student of Computer Science




Archives gérées par MHonArc 2.6.16.

Top of page