jzy3d on linux

已查看 221 次
跳至第一个未读帖子

leon de pokara

未读,
2011年11月29日 10:30:562011/11/29
收件人 Jzy3d
hi,

I am looking for a tool capable of generating 3D graphics. From a Java
application, called this tool through a library or API, through a
series of data such as chart type, size, etc ... so generated graphics
and direcotorio could save an image, it can be. jpg,. png, etc. ..

I have seen your tool and see which generates the graphic style I need
and can also run on Linux. I was wondering if there is a Java API to
me from my Java application can call your herrameinta.

I created a. Jar and windows me works very well, but in Linux I have
problems with libraries. Would I could you indicate what steps I
follow to make it run on linux?

THANK YOU, THANK YOU

thank you very much

regards

---------------------------------------------------------------------------------------------------------------------------------------------------
Estoy buscando una herramienta capaz de generar gráficos en 3D. Desde
una aplicación Java, llamó a esta herramienta a través de una
biblioteca o API, a través de una serie de datos tales como tipo de
gráfico, tamaño, etc ... gráficos que genera y direcotorio podría
guardar una imagen, que puede ser. jpg,. png, etc ..

He visto su herramienta y ver lo que genera el estilo gráfico que
necesito y también se puede ejecutar en Linux. Me preguntaba si hay
una API Java para mí desde mi aplicación Java puede llamar a su
herrameinta.

He creado a. Jar y las ventanas me funciona muy bien, pero en Linux
tengo problemas con las bibliotecas. ¿Me podría indicar qué pasos debo
seguir para hacer que se ejecute en linux?

Martin Pernollet

未读,
2011年11月29日 10:40:082011/11/29
收件人 jz...@googlegroups.com
Hello,
What are your "problems on linux"?
Cheers,
Martin

2011/11/29 leon de pokara <pmca...@gmail.com>

leon de pokara

未读,
2011年11月29日 11:19:502011/11/29
收件人 Jzy3d
I created a jar. with a demo of execution of batch type
BigSurfaceOffscreenDemo.jar called

run
java-Djava.library.path = / tmp / fred / lib-jar
BigSurfaceOffscreenDemo.jar

in / tmp / fred / lib, I have

gluegen-rt-natives-linux-i586.jar
libjogl_es2.so
libgluegen-rt.so
libnativewindow_awt.so
libjogl_desktop.so
libnativewindow_x11.so
libjogl_es1.so
libnewt.so

and the error I get is

This demo May Need to run with-Xmx1024m arguments as VM
Completed in 1.499057 s Tesselation
Exception in thread "main" java.lang.UnsatisfiedLinkError:
com.sun.gluegen.runtime.UnixDynamicLinkerImpl.dlopen (Ljava / lang /
String; I) J
at com.sun.gluegen.runtime.UnixDynamicLinkerImpl.dlopen
(Native Method)
at com.sun.gluegen.runtime.UnixDynamicLinkerImpl.openLibrary
(UnixDynamicLinkerImpl.java: 43)
at com.sun.gluegen.runtime.NativeLibrary.open
(NativeLibrary.java: 164)
at com.sun.gluegen.runtime.NativeLibrary.open
(NativeLibrary.java: 129)
at com.sun.opengl.impl.x11.DRIHack.begin (DRIHack.java: 109)
at com.sun.opengl.impl.x11.X11GLDrawableFactory. <clinit>
(X11GLDrawableFactory.java: 96)
at java.lang.Class.forName0 (Native Method)
at java.lang.Class.forName (Class.java: 169)
at javax.media.opengl.GLDrawableFactory.getFactory
(GLDrawableFactory.java: 111)
at org.jzy3d.plot3d.rendering.canvas.OffscreenCanvas. <init>
(OffscreenCanvas.java: 43)
at org.jzy3d.chart.Chart.initializeCanvas (Chart.java: 74)
at org.jzy3d.chart.Chart. <init> (Chart.java: 56)
at org.jzy3d.chart.Chart. <init> (Chart.java: 47)
at org.BigSurfaceOffscreenDemo. <init>
(BigSurfaceOffscreenDemo.java: 42)
at org.BigSurfaceOffscreenDemo.main
(BigSurfaceOffscreenDemo.java: 23)

Can you help?

On 29 nov, 16:40, Martin Pernollet <martin.pernol...@gmail.com> wrote:
> Hello,
> What are your "problems on linux"?
> Cheers,
> Martin
>

> 2011/11/29 leon de pokara <pmcast...@gmail.com>

Martin Pernollet

未读,
2011年11月29日 11:55:532011/11/29
收件人 jz...@googlegroups.com
Hi,
It seems the jars can find the SO files. You should try running the program in the run/linux/ folder, or copy paste the so files in your current directory.
Martin

2011/11/29 leon de pokara <pmca...@gmail.com>

Nils Hoffmann

未读,
2011年11月29日 13:51:572011/11/29
收件人 jz...@googlegroups.com
Hi!
Have you tried running with
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp/fred/lib/" java
-Djava.library.path=/tmp/fred/lib -jar BigSurfaceOffscreenDemo.jar

Nils

Nils Hoffmann

未读,
2011年11月29日 14:02:242011/11/29
收件人 jz...@googlegroups.com
BTW, is your linux 64 bit or 32 bit and do the jogl libraries
match the architecture?

>uname -m
should give you a hint (either x86_64 for 64 bits or any of i386,i586,i686 for 32 bit)

And according to the jogamp wiki, there may be an issue with proprietary ATI drivers on linux:

http://jogamp.org/wiki/index.php/Jogl_FAQ#X11:_OpenGL_library_is_not_picked_up_correctly.2C__no_OpenGL_available


Hope that helps,
Nils
Am 29.11.11 17:19, schrieb leon de pokara:

leon de pokara

未读,
2011年11月30日 03:32:432011/11/30
收件人 Jzy3d
thaks a lot !!!

now, i have a new problem,... :-((

I did download jogl.jar and put it in :/opt/jdk1.6.0_29/jre/lib/ext/
then I did download jogl-natives-linux-i586.jar and put in /opt/
jdk1.6.0_29/jre/lib/i386/
and everything ok, but..... now, after run java -jar
BigSurfaceOffscreenDemo.jar the screen show me that :

This demo may need to run with -Xmx1024m as VM arguments
Tesselation completed in 1.4688321 s
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/
gluegen/runtime/DynamicLookupHelper
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:
283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:
229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:
283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:
229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:


111)
at
org.jzy3d.plot3d.rendering.canvas.OffscreenCanvas.<init>(OffscreenCanvas.java:
43)

at org.jzy3d.chart.Chart.initializeCanvas(Chart.java:74)


at org.jzy3d.chart.Chart.<init>(Chart.java:56)
at org.jzy3d.chart.Chart.<init>(Chart.java:47)
at
org.BigSurfaceOffscreenDemo.<init>(BigSurfaceOffscreenDemo.java:42)
at
org.BigSurfaceOffscreenDemo.main(BigSurfaceOffscreenDemo.java:23)

Caused by: java.lang.ClassNotFoundException:
com.sun.gluegen.runtime.DynamicLookupHelper
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 sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:
229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 33 more

thanks,

On 29 nov, 20:02, Nils Hoffmann <nils.hoffm...@web.de> wrote:
> BTW, is your linux 64 bit or 32 bit and do the jogl libraries
> match the architecture?
>
> >uname -m
>
> should give you a hint (either x86_64 for 64 bits or any of
> i386,i586,i686 for 32 bit)
>
> And according to the jogamp wiki, there may be an issue with proprietary
> ATI drivers on linux:
>

> http://jogamp.org/wiki/index.php/Jogl_FAQ#X11:_OpenGL_library_is_not_...

> >>> Estoy buscando una herramienta capaz de generar gr�ficos en 3D. Desde
> >>> una aplicaci�n Java, llam� a esta herramienta a trav�s de una
> >>> biblioteca o API, a trav�s de una serie de datos tales como tipo de
> >>> gr�fico, tama�o, etc ... gr�ficos que genera y direcotorio podr�a


> >>> guardar una imagen, que puede ser. jpg,. png, etc ..

> >>> He visto su herramienta y ver lo que genera el estilo gr�fico que
> >>> necesito y tambi�n se puede ejecutar en Linux. Me preguntaba si hay
> >>> una API Java para m� desde mi aplicaci�n Java puede llamar a su


> >>> herrameinta.
> >>> He creado a. Jar y las ventanas me funciona muy bien, pero en Linux

> >>> tengo problemas con las bibliotecas. �Me podr�a indicar qu� pasos debo

Nils Hoffmann

未读,
2011年11月30日 03:52:332011/11/30
收件人 jz...@googlegroups.com
Try placing
gluegen-rt-natives-linux-i586.jar
in
/opt/jdk1.6.0_29/jre/lib/ext/

and placing
libgluegen-rt.so
in
/opt/jdk1.6.0_29/jre/lib/i386/

In general, all the jars should go into the ext directory, while
architecture
dependent dynamic libraries (.so) should live under the i386 folder (for
32 bit that is). This will however tie your JDK to that version of JOGL
;-), which should be okay for now.

Regards,
Nils
Am 30.11.11 09:32, schrieb leon de pokara:

>>>>> Estoy buscando una herramienta capaz de generar gr�ficos en 3D. Desde
>>>>> una aplicaci�n Java, llam� a esta herramienta a trav�s de una
>>>>> biblioteca o API, a trav�s de una serie de datos tales como tipo de
>>>>> gr�fico, tama�o, etc ... gr�ficos que genera y direcotorio podr�a


>>>>> guardar una imagen, que puede ser. jpg,. png, etc ..

>>>>> He visto su herramienta y ver lo que genera el estilo gr�fico que
>>>>> necesito y tambi�n se puede ejecutar en Linux. Me preguntaba si hay
>>>>> una API Java para m� desde mi aplicaci�n Java puede llamar a su


>>>>> herrameinta.
>>>>> He creado a. Jar y las ventanas me funciona muy bien, pero en Linux

>>>>> tengo problemas con las bibliotecas. �Me podr�a indicar qu� pasos debo

leon de pokara

未读,
2011年11月30日 08:28:352011/11/30
收件人 Jzy3d
ok
thanks
I have done it,
but..... ( in spain, everything has a "but" )

now my problem is


Tesselation completed in 1.5186348 s
Exception in thread "main" java.lang.UnsatisfiedLinkError:
com.sun.gluegen.runtime.UnixDynamicLinkerImpl.dlopen(Ljava/lang/
String;I)J
at com.sun.gluegen.runtime.UnixDynamicLinkerImpl.dlopen(Native
Method)
at
com.sun.gluegen.runtime.UnixDynamicLinkerImpl.openLibrary(UnixDynamicLinkerImpl.java:
43)
at
com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:164)
at
com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:129)
at com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java:109)


at
com.sun.opengl.impl.x11.X11GLDrawableFactory.<clinit>(X11GLDrawableFactory.java:
96)

at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:
111)
at
org.jzy3d.plot3d.rendering.canvas.OffscreenCanvas.<init>(OffscreenCanvas.java:
43)
at org.jzy3d.chart.Chart.initializeCanvas(Chart.java:74)
at org.jzy3d.chart.Chart.<init>(Chart.java:56)
at org.jzy3d.chart.Chart.<init>(Chart.java:47)

at test.Main.<init>(Main.java:42)
at test.Main.main(Main.java:23)

It is so dificult to run it on linux !

leon de pokara

未读,
2011年11月30日 08:31:402011/11/30
收件人 Jzy3d
hi

Thanks, i have done all that you say me, but... ( in Spain, everything
has a "but" )

.. but now


Tesselation completed in 1.5186348 s
Exception in thread "main" java.lang.UnsatisfiedLinkError:
com.sun.gluegen.runtime.UnixDynamicLinkerImpl.dlopen(Ljava/lang/
String;I)J
at com.sun.gluegen.runtime.UnixDynamicLinkerImpl.dlopen(Native
Method)
at
com.sun.gluegen.runtime.UnixDynamicLinkerImpl.openLibrary(UnixDynamicLinkerImpl.java:
43)
at
com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:164)
at
com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:129)

at com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java:109)


at
com.sun.opengl.impl.x11.X11GLDrawableFactory.<clinit>(X11GLDrawableFactory.java:
96)

at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:
111)
at
org.jzy3d.plot3d.rendering.canvas.OffscreenCanvas.<init>(OffscreenCanvas.java:
43)
at org.jzy3d.chart.Chart.initializeCanvas(Chart.java:74)
at org.jzy3d.chart.Chart.<init>(Chart.java:56)
at org.jzy3d.chart.Chart.<init>(Chart.java:47)

at test.Main.<init>(Main.java:42)
at test.Main.main(Main.java:23)


It so dificult to run jzy3d on linux...

On 30 nov, 09:52, Nils Hoffmann <nils.hoffm...@web.de> wrote:

leon de pokara

未读,
2011年11月30日 11:13:402011/11/30
收件人 Jzy3d
ops,

more information

if I type this
glxinfo -l
result is
Error: unable to open display (null)

> ...
>
> leer más »

leon de pokara

未读,
2011年11月30日 12:14:032011/11/30
收件人 Jzy3d

if i type

uname -m

it result

i686

i am getting crazy !!!

> ...
>
> leer más »

Nils Hoffmann

未读,
2011年11月30日 13:56:552011/11/30
收件人 jz...@googlegroups.com
Leon, which Linux distribution are you using?
Please give us the output of
>uname -a
and
> lsb_release -a
Am 30.11.11 17:13, schrieb leon de pokara:

> ops,
>
> more information
>
> if I type this
> glxinfo -l
> result is
> Error: unable to open display (null)
This sounds like missing 3D support/drivers. Try installing
the mesa gl drivers for your system (http://www.mesa3d.org/ or from your
distributions package management system). You will also need a driver which
supports hardware accelerated 3D (it might also work with mesa's
software rendering fallback, but I never tried that). Please note, that
under Linux, most OpenSource drivers do not
support 3D, or only partially support it. So if you own an ATI or NVIDIA
graphics card, please see the instructions for your Linux distribution
on how to install and set the drivers up correctly.
>> leer m�s �

leon de pokara

未读,
2011年12月1日 03:51:582011/12/1
收件人 Jzy3d
hi,

here you have what you ask me

lsb_release -a

LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-
noarch:core-2.0-ia32:core-3.2-ia32:core-4.0-ia32:desktop-4.0-
ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-
noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-
ia32:graphics-4.0-noarch
Distributor ID: SUSE LINUX
Description: SUSE Linux Enterprise Server 11 (i586)
Release: 11
Codename: n/a

and

uname -a

Linux siprev-inte 2.6.32.12-0.7-pae #1 SMP 2010-05-20 11:14:20 +0200
i686 i686 i386 GNU/Linux

On 30 nov, 19:56, Nils Hoffmann <nils.hoffm...@web.de> wrote:
> Leon, which Linux distribution are you using?
> Please give us the output of>uname -a
> and
> > lsb_release -a
>
> Am 30.11.11 17:13, schrieb leon de pokara:> ops,
>
> > more information
>
> > if I type this
> > glxinfo -l
> > result is
> > Error: unable to open display (null)
>
> This sounds like missing 3D support/drivers. Try installing

> the mesa gl drivers for your system (http://www.mesa3d.org/or from your

> ...
>
> leer más »

回复全部
回复作者
转发
0 个新帖子