Scala and Jzy3d and maven, impossible mission ?

259 views
Skip to first unread message

reyman

unread,
Jul 31, 2011, 4:25:03 PM7/31/11
to Jzy3d, reym...@gmail.com, rom...@reuillon.org
Hello,
I'm trying to implement very simple visualisation with Jzy3d.
I'm using the code written by Aurimas in a previous (2010) post :
http://groups.google.com/group/jzy3d/browse_thread/thread/5e523a9de116cf/b2b26a304d8c863b?lnk=gst&q=scala#b2b26a304d8c863b

I have this source code in netbeans7.0 :

import org.jzy3d.plot3d.builder.concrete._
import org.jzy3d.plot3d.builder._
import org.jzy3d.plot3d.primitives.Shape
import org.jzy3d.ui.ChartLauncher
import org.jzy3d.maths.Range
import org.jzy3d.colors.colormaps._
import org.jzy3d.chart._
import org.jzy3d.colors._

import java.awt.Rectangle

object testGraphique {

def main(args: Array[String]): Unit = {
object Mapper extends Mapper{
override def f(x: Double, y: Double): Double = {
val sigma = 15
return -x*x-y*y
}
}
// Define range and precision for the function to plot
val range = new Range(-1.0,1.0)
val steps = 50

val surface = Builder.buildOrthonormal(new OrthonormalGrid(range,
steps,
range, steps), Mapper)
surface.asInstanceOf[Shape].setColorMapper(new ColorMapper(new
ColorMapRainbow(), surface.getBounds().getZmin(),
surface.getBounds().getZmax()))
surface.asInstanceOf[Shape].setFaceDisplayed(true)
surface.asInstanceOf[Shape].setWireframeDisplayed(true)
surface.asInstanceOf[Shape].setWireframeColor(Color.BLACK)

val chart = new Chart()
chart.getScene().getGraph().add(surface)

ChartLauncher.openChart(chart, new Rectangle(0,0,800,800), "")
}
}

There are no maven depository for jogl 2.0 so i add manually the
dependencies, here the dependencies into my pom.xml for this
project :

<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${lib.org.scala-lang.scala.version}</version>
<!--<scope>provided</scope>-->
</dependency>
<dependency>
<groupId>com.jogamp.jogl</groupId>
<artifactId>jogl-all</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.jogamp.jogl</groupId>
<artifactId>jogl-natives</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.jogamp.gluegen</groupId>
<artifactId>gluegen-rt</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.openmole.tools</groupId>
<artifactId>mgo</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.openmole</groupId>
<artifactId>au.com.bytecode.opencsv</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org</groupId>
<artifactId>jzy3d</artifactId>
<version>0.9</version>
<scope>system</scope>
<systemPath>/home/srey/TRAVAUX/THESE/REPOSITORY_NETBEAN/
slocalfit/lib/jzy3d-0.9.jar</systemPath>
<type>jar</type>
</dependency>
</dependencies>

I have no probleme at compilation , but when i want to run my sample,
i have this fatal error :

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:
1.2:java (default-cli) on project slocalfit: An exception occured
while executing the Java class. null: InvocationTargetException: org/
jzy3d/plot3d/builder/Mapper: org.jzy3d.plot3d.builder.Mapper -> [Help
1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java (default-
cli) on project slocalfit: An exception occured while executing the
Java class. null
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:
183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: An
exception occured while executing the Java class. null
at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:346)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
209)
... 19 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NoClassDefFoundError: org/jzy3d/plot3d/builder/
Mapper
at fr.iscpif.slocalfit.testGraphique.main(testGraphique.scala)
... 6 more
Caused by: java.lang.ClassNotFoundException:
org.jzy3d.plot3d.builder.Mapper
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 7 more

If you have a sample project (or an idea to solve this problem) with
scala and Jzy3D, i want it :)
Thanks a lot,
Best regards !
SR.

Martin Pernollet

unread,
Aug 1, 2011, 3:31:20 AM8/1/11
to jz...@googlegroups.com, reym...@gmail.com, rom...@reuillon.org
Hi,

You seem to have a problem around Mapper. Note that there is another Mapper class in org.jzy3d.maths. Maybe you are not using the expected one (you should use org.jzy3d.plot3d.builder.Mapper).

Another idea: are you sure you properly extend the abstract class org.jzy3d.plot3d.builder.Mapper with respect to the scala syntax? I don't know that language, and I just fear "object Mapper extends Mapper" may shadow the original Mapper.

Cheers,
Martin

2011/7/31 reyman <reym...@gmail.com>

rey sebastien

unread,
Aug 1, 2011, 3:49:25 AM8/1/11
to Martin Pernollet, jz...@googlegroups.com, rom...@reuillon.org
Le 01/08/2011 09:31, Martin Pernollet a écrit :
Hi,

Hi !
Thanks for this answer :)


You seem to have a problem around Mapper. Note that there is another Mapper class in org.jzy3d.maths. Maybe you are not using the expected one (you should use org.jzy3d.plot3d.builder.Mapper).
I modify the source code, and trying to use directly org.jzy3d.plot3d.builder.Mapper, but same problem :/



Another idea: are you sure you properly extend the abstract class org.jzy3d.plot3d.builder.Mapper with respect to the scala syntax? I don't know that language, and I just fear "object Mapper extends Mapper" may shadow the original Mapper.
I change code to use an object MapperTest extends Mapper, same problem when i run the code :/

[exec:exec]
Exception in thread "main" java.lang.NoClassDefFoundError: org/jzy3d/plot3d/builder/Mapper
    at fr.iscpif.slocalfit.testGraphique.main(testGraphique.scala)

Caused by: java.lang.ClassNotFoundException: org.jzy3d.plot3d.builder.Mapper
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 1 more
-----------------------------------

Do you use maven with jzy3d, because in trunk, there maven related file ... but no pom.xml ..
Best regards,
SR.

Martin Pernollet

unread,
Aug 1, 2011, 3:56:31 AM8/1/11
to rey sebastien, jz...@googlegroups.com, rom...@reuillon.org


2011/8/1 rey sebastien <reym...@gmail.com>


[exec:exec]
Exception in thread "main" java.lang.NoClassDefFoundError: org/jzy3d/plot3d/builder/Mapper


Can any other jzy3d class be loaded? Mapper seams to be the first you instanciate.
 
Do you use maven with jzy3d, because in trunk, there maven related file ... but no pom.xml

Due to some problems with eclipse maven plugin some time ago, I stopped using maven, but I kept few maven files in the project.

Cheers,
MArtin

rey sebastien

unread,
Aug 1, 2011, 4:01:47 AM8/1/11
to Martin Pernollet, jz...@googlegroups.com, rom...@reuillon.org
Le 01/08/2011 09:56, Martin Pernollet a écrit :


2011/8/1 rey sebastien <reym...@gmail.com>

[exec:exec]
Exception in thread "main" java.lang.NoClassDefFoundError: org/jzy3d/plot3d/builder/Mapper


Hum it seems this is the same problem with all of jzy3D java class :/ I'm trying to understand why, because netbeans find these class, it's only a problem with execution...

[exec:exec]
Exception in thread "main" java.lang.NoClassDefFoundError: org/jzy3d/maths/Range
    at fr.iscpif.slocalfit.testGraphique$.main(testGraphique.scala:25)
    at fr.iscpif.slocalfit.testGraphique.main(testGraphique.scala)
Caused by: java.lang.ClassNotFoundException: org.jzy3d.maths.Range

    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 2 more

rey sebastien

unread,
Aug 1, 2011, 5:18:12 AM8/1/11
to Martin Pernollet, jz...@googlegroups.com, rom...@reuillon.org
I delete project and restart, adding manually artifact, and it seem object of jzy3d are found :)
But, i have new problem, i add the dependency for gluegen in project, but netbean list only the gluegen folder into com.jogamp and not the common folder
    <dependency>
      <groupId>com.jogamp.gluegen</groupId>
      <artifactId>gluegen-rt</artifactId>
      <version>2.0</version>
    </dependency>

So i have this error, and i don't know how i can force netbean and scala to see the com/jogamp/common folder ...

Exception in thread "main" java.lang.NoClassDefFoundError: com/jogamp/common/jvm/JVMUtil
    at javax.media.nativewindow.NativeWindowFactory.<clinit>(NativeWindowFactory.java:102)
    at javax.media.opengl.awt.GLCanvas.<clinit>(GLCanvas.java:82)
    at org.jzy3d.chart.Chart.initializeCanvas(Chart.java:65)
    at org.jzy3d.chart.Chart.<init>(Chart.java:56)
    at org.jzy3d.chart.Chart.<init>(Chart.java:39)
    at fr.iscpif.slocalfit.testGraphique$.main(testGraphique.scala:27)
    at fr.iscpif.slocalfit.testGraphique.main(testGraphique.scala)
Caused by: java.lang.ClassNotFoundException: com.jogamp.common.jvm.JVMUtil

    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 7 more

Le 01/08/2011 09:56, Martin Pernollet a écrit :

rey sebastien

unread,
Aug 1, 2011, 8:25:30 AM8/1/11
to reyman, Jzy3d, rom...@reuillon.org
Hello,
I have some new information, in fact maven need the correct version
number to open the jar file correctly ...
So here the dependencies on my pom.xml for trunk version of lib,so it's
possible :)

<dependency>
<groupId>javax.media.opengl</groupId>
<artifactId>jogl-core</artifactId>
<version>2.0-pre-20101001</version>
</dependency>
<dependency>
<groupId>javax.media.opengl</groupId>
<artifactId>jogl-util</artifactId>
<version>2.0-pre-20101001</version>
</dependency>
<dependency>

<groupId>javax.media.nativewindow</groupId>
<artifactId>nativewindow-core</artifactId>
<version>2.0-pre-20101001</version>
</dependency>

<dependency>
<groupId>com.jogamp.gluegen</groupId>
<artifactId>gluegen-rt</artifactId>

<version>1.0-beta07</version>
</dependency>

Now i have an other error, with java.library.path;
I'm searching how i can add to pom.xml file the path to /usr/lib/jni
which contain *.so for jogl and gluagen

Best regards,
SR

Le 31/07/2011 22:25, reyman a �crit :

rey sebastien

unread,
Aug 1, 2011, 11:52:12 AM8/1/11
to Martin Pernollet, Jzy3d
Ok, thanks :)
I dl and install of these dependency with your link :

   <dependencies>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>${lib.org.scala-lang.scala.version}</version>
            <!--<scope>provided</scope>-->
        </dependency>
                <dependency>
            <groupId>javax.media.opengl</groupId>
            <artifactId>jogl</artifactId>

            <version>2.0-pre-20101001</version>   
        </dependency>

        <dependency>
            <groupId>javax.media.opengl</groupId>
            <artifactId>jogl-util</artifactId>
            <version>2.0-pre-20101001</version>
        </dependency>
        <dependency>
           
            <groupId>com.jogamp.nativewindow</groupId>
            <artifactId>nativewindow</artifactId>   
            <version>2.0-pre-20101001</version>
        </dependency>
       
        <dependency>
            <groupId>com.jogamp.newt</groupId>
            <artifactId>newt</artifactId>   
            <version>2.0-pre-20101001</version>

        </dependency>
       
          <dependency>
            <groupId>org</groupId>
            <artifactId>convexhull</artifactId>   
            <version>1.0</version>
        </dependency>

I don't know the groupId,artifactId and version for convexhull because there are no information about that in Manifest ...
If you have more information, i take :)

The program compile but i have this error at execution in console (no gui appear) :

[INFO] cmd:  /usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java -classpath /home/srey/TRAVAUX/THESE/REPOSITORY_NETBEAN/slocalfit/target/test-classes:/home/srey/TRAVAUX/THESE/REPOSITORY_NETBEAN/slocalfit/target/classes:/home/srey/.m2/repository/org/scala-lang/scala-library/2.9.0-1/scala-library-2.9.0-1.jar:/home/srey/.m2/repository/javax/media/opengl/jogl/2.0-pre-20101001/jogl-2.0-pre-20101001.jar:/home/srey/.m2/repository/javax/media/opengl/jogl-util/2.0-pre-20101001/jogl-util-2.0-pre-20101001.jar:/home/srey/.m2/repository/com/jogamp/nativewindow/nativewindow/2.0-pre-20101001/nativewindow-2.0-pre-20101001.jar:/home/srey/.m2/repository/com/jogamp/newt/newt/2.0-pre-20101001/newt-2.0-pre-20101001.jar:/home/srey/.m2/repository/org/convexhull/1.0/convexhull-1.0.jar:/home/srey/.m2/repository/com/jogamp/common/gluegen-rt/2.0-pre-20101001/gluegen-rt-2.0-pre-20101001.jar:/home/srey/.m2/repository/org/apache/commons/commons-math/3.0-SNAPSHOT/commons-math-3.0-SNAPSHOT.jar:/home/srey/.m2/repository/ca/umontreal/iro/ssj/2.4/ssj-2.4.jar:/home/srey/.m2/reposit ory/gov/lbl/acs/colt/colt/1.2/colt-1.2.jar:/home/srey/.m2/repository/jfree/jfreechart/1.0.13/jfreechart-1.0.13.jar:/home/srey/.m2/repository/jfree/jcommon/1.0.15/jcommon-1.0.15.jar:/home/srey/.m2/repository/org/openmole/tools/mgo/1.0-SNAPSHOT/mgo-1.0-SNAPSHOT.jar:/home/srey/.m2/repository/org/openmole/au.com.bytecode.opencsv/2.0/au.com.bytecode.opencsv-2.0.jar:/home/srey/.m2/repository/org/jzy3d/0.9/jzy3d-0.9.jar:/home/srey/.m2/repository/org/scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.jar -Djava.library.path=/home/srey/TRAVAUX/THESE/REPOSITORY_NETBEAN/slocalfit/lib/ org_scala_tools_maven_executions.MainWithArgsInFile fr.iscpif.slocalfit.testGraphique /tmp/scala-maven-857208654054670365.args
Info: XInitThreads() called for concurrent Thread support
java.lang.Exception: Previously locked by Thread[AWT-EventQueue-0,6,main], lock: com.jogamp.nativewindow.impl.RecursiveToolkitLock@5eb7ec5d
    at com.jogamp.nativewindow.impl.RecursiveToolkitLock.lock(RecursiveToolkitLock.java:112)
    at com.jogamp.nativewindow.impl.jawt.JAWTWindow.lockSurface(JAWTWindow.java:109)
    at com.jogamp.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:173)
    at com.jogamp.opengl.impl.GLContextImpl.makeCurrentLocking(GLContextImpl.java:352)
    at com.jogamp.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:314)
    at com.jogamp.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:276)
    at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:677)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org_scala_tools_maven_executions.MainHelper.runMain(MainHelper.java:161)
    at org_scala_tools_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: java.lang.RuntimeException: Waited 5000ms for: Thread[AWT-EventQueue-0,6,main] - Thread[main,5,main], with recursionCount 0, lock: com.jogamp.nativewindow.impl.RecursiveToolkitLock@5eb7ec5d
    at com.jogamp.nativewindow.impl.RecursiveToolkitLock.lock(RecursiveToolkitLock.java:106)
    at com.jogamp.nativewindow.impl.jawt.JAWTWindow.lockSurface(JAWTWindow.java:109)
    at com.jogamp.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:173)
    at com.jogamp.opengl.impl.GLDrawableImpl.setRealized(GLDrawableImpl.java:137)
    at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:436)
    at java.awt.Container.addNotify(Container.java:2578)
    at java.awt.Window.addNotify(Window.java:663)
    at java.awt.Frame.addNotify(Frame.java:470)
    at java.awt.Window.pack(Window.java:704)
    at org.jzy3d.bridge.awt.FrameAWT.<init>(FrameAWT.java:15)
    at org.jzy3d.ui.Plugs.frame(Plugs.java:25)
    at org.jzy3d.ui.ChartLauncher.openChart(ChartLauncher.java:85)
    at org.jzy3d.ui.ChartLauncher.openChart(ChartLauncher.java:36)
    at org.jzy3d.ui.ChartLauncher.openChart(ChartLauncher.java:33)
    at fr.iscpif.slocalfit.testGraphique$.main(testGraphique.scala:50)

    at fr.iscpif.slocalfit.testGraphique.main(testGraphique.scala)
    ... 6 more

If you have an idea of the origin of this error, because i don't know how i can make more on this problem :(
Jzy need the swt package to run out of eclipse, when you run the program in a terminal ?
I'm running on amd64 linux ubuntu 11.04
Thanks for you advice :)

Victory is for tonight ...
SR
 

Le 01/08/2011 15:31, Martin Pernollet a écrit :
It was picked there: http://jogamp.org/deployment/autobuilds/master/jogl-b187-2010-09-30_18-13-01/build/
or maybe another b18* version. 
Next time I have to update jogl, I'll keep track of the version. Sorry for that mess.

2011/8/1 rey sebastien <reym...@gmail.com>
Le 01/08/2011 12:16, Martin Pernollet a écrit :

I downloaded the jars: jogl is hard to build.


Which version is ? for jogl ,and gluegen rt ?
thanks,
best regards,
SebastienR

Le 2011 8 1 12:12, "rey sebastien" <reym...@gmail.com> a écrit :
> Le 01/08/2011 12:09, Martin Pernollet a écrit :
>> If you work with the trunk, you can find the dependencies here:
>> http://jzy3d.free.fr/releases/0.9alpha/
>> But the dependencies are those provided in the lib/ directory. Are you
>> using JOGL available in this directory, or a maven-retrieved version
>> of jogl?
>>
> I try all of these, but actually i'm using a maven dependency now :
> http://devblog.iscpif.fr/?p=76
> But for gluegen-jar you download or construct the jar ? if you download
> the jar, perhaps i can try to dl or build another version to test if the
> jar is ok for netbean.
>>
>> 2011/8/1 rey sebastien <reym...@gmail.com <mailto:reym...@gmail.com>>

>>
>> Le 01/08/2011 12:02, Martin Pernollet a écrit :
>>>
>>>
>>> 2011/8/1 rey sebastien <reym...@gmail.com
>>> <mailto:reym...@gmail.com>>

>>>
>>>
>>> So i have this error, and i don't know how i can force
>>> netbean and scala to see the com/jogamp/common folder ...
>>>
>>>
>>> I don't know either :(
>>>
>> Do you know where i can download the gluegen-rt jar ?
>> It seem the jar in trunk is perhaphs incorrect for netbean :/

>>
>>
>>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> com/jogamp/common/jvm/JVMUtil
>>> at
>>> javax.media.nativewindow.NativeWindowFactory.<clinit>(NativeWindowFactory.java:102)
>>> at javax.media.opengl.awt.GLCanvas.<clinit>(GLCanvas.java:82)
>>> at org.jzy3d.chart.Chart.initializeCanvas(Chart.java:65)
>>> at org.jzy3d.chart.Chart.<init>(Chart.java:56)
>>> at org.jzy3d.chart.Chart.<init>(Chart.java:39)
>>> at
>>> fr.iscpif.slocalfit.testGraphique$.main(testGraphique.scala:27)
>>>
>>> at
>>> fr.iscpif.slocalfit.testGraphique.main(testGraphique.scala)
>>> Caused by: java.lang.ClassNotFoundException:
>>> com.jogamp.common.jvm.JVMUtil
>>>
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>> at
>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>> ... 7 more
>>>
>>> Le 01/08/2011 09:56, Martin Pernollet a écrit :
>>>>
>>>>
>>>> 2011/8/1 rey sebastien <reym...@gmail.com
>>>> <mailto:reym...@gmail.com>>

>>>>
>>>>
>>>> [exec:exec]
>>>> Exception in thread "main"
>>>> java.lang.NoClassDefFoundError:
>>>> org/jzy3d/plot3d/builder/Mapper
>>>>
>>>>
>>>>
>>>> Can any other jzy3d class be loaded? Mapper seams to be the
>>>> first you instanciate.
>>>>
>>>> Do you use maven with jzy3d, because in trunk, there
>>>> maven related file ... but no pom.xml
>>>>
>>>>
>>>> Due to some problems with eclipse maven plugin some time
>>>> ago, I stopped using maven, but I kept few maven files in
>>>> the project.
>>>>
>>>> Cheers,
>>>> MArtin
>>>>
>>>> ..
>>>> Best regards,
>>>> SR.
>>>>
>>>>
>>>>> Cheers,
>>>>> Martin
>>>>>
>>>>> 2011/7/31 reyman <reym...@gmail.com
>>>>> <mailto:reym...@gmail.com>>

Martin Pernollet

unread,
Aug 1, 2011, 12:21:19 PM8/1/11
to rey sebastien, Jzy3d
Actually convexhull is a piece of code found on google code and that I built by myself (most probably this one: http://code.google.com/p/convexhull/). There is no standard maven artifact or group id.

There is a maven command to register by yourself a jar in your repository repository, which let you choose a group and artifact id (something like maven install xxx). I remember it was explained at the early beginning of the manual.

The lack of a maven repository a real pain for jzy3d users. If you achieve to setup all scripts to cleanly build and distribute jzy, I can provide a server space to store the builds. Let us know how you succeed!

Cheers,
Martin

2011/8/1 rey sebastien <reym...@gmail.com>
Reply all
Reply to author
Forward
0 new messages