How to run jyz3d?

499 views
Skip to first unread message

Hédipo

unread,
Jan 26, 2011, 5:15:02 AM1/26/11
to Jzy3d
Hi, i will start a project using jzy3d, but I didn't get success in
running the demos.


i´ve downloaded the jdk: "jdk-6u23-windows-i586.exe"

and i´m using the eclipse: "Eclipse IDE for Java EE Developers, 206
MB"

downloaded at: "http://www.eclipse.org/downloads/" on: 25/01/2011 -
9:00pm

i´ve downloaded the file: "org.jzy3d-0.8.2-demo-eclipse-project.zip"


in eclipse i followed these steps(found in another post):
- Menu File > Import project
- Section General > "Existing projects into workspace"
- In "Select root directory" copy paste the directory where you
unzipped jzy3d
- You should see a checked entry "jzy3d-0.7-demos..." > click Finish
- In "src" open the package which name finishes with "surface"


i´ve tried to run all demos in this package, but each has generated an
exception
(just changing the last three lines) like this:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in
java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at
com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:
178)
at com.sun.opengl.impl.NativeLibLoader.access
$000(NativeLibLoader.java:48)
at com.sun.opengl.impl.NativeLibLoader
$DefaultAction.loadLibrary(NativeLibLoader.java:79)
at
com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:
102)
at com.sun.opengl.impl.NativeLibLoader.access
$200(NativeLibLoader.java:48)
at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:
110)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:
108)
at
com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(WindowsGLDrawableFactory.java:
60)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:
106)
at
javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:
409)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:117)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:86)
at org.jzy3d.plot3d.rendering.canvas.CanvasAWT.<init>(CanvasAWT.java:
45)
at org.jzy3d.plot3d.rendering.canvas.CanvasAWT.<init>(CanvasAWT.java:
40)
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
org.jzy3d.demos.surface.BuildSurfaceDemo.<init>(BuildSurfaceDemo.java:
43)
at
org.jzy3d.demos.surface.BuildSurfaceDemo.main(BuildSurfaceDemo.java:
19)

what am i doing wrong?

Aurimas Anskaitis

unread,
Jan 26, 2011, 6:27:06 AM1/26/11
to jz...@googlegroups.com
Hi, I'm not the author nor do I belong to official support team.
That said, you should at least add jogl.jar ang gluegen-rt.jar to your build path.
Project -> Properties -> Java Build Path -> Libraries -> Add External Jar. Find above mentioned jars. After this you should double click on the
added entries and also add the locations of corresponding native libraries. Every library you need is supplied in jzy3d binaries.


2011/1/26 Hédipo <kingo...@gmail.com>

Nils Hoffmann

unread,
Jan 26, 2011, 7:12:08 AM1/26/11
to jz...@googlegroups.com
Hi H�dipo!

The unsatisfied link error hints to the problem, that
you do not have JOGL installed ;-).
Since jzy3d-0.8.2 depends on JOGL-1, you need to fetch
the required packages first. I suggest doing this, in order to have
consistent jogl/gluegen
apis and native libraries.

If you are using a 64 bit windows:
http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/jogl-1.1.1-windows-amd64.zip
otherwise for 32 bit:
http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/jogl-1.1.1-windows-i586.zip

Unpack the zips to a directory of your liking, e.g. C:\Jogl-1.
Then:
1) Create a new java project in eclipse, e.g. named jzy3d
2) Create two new folders within the project:
lib
native
3) Copy all jars from below C:\Jogl-1\lib to "lib" and all dll's to
"native" within your project directory. (E.g. via Import -> General ->
File System
4) Refresh the workspace (press F5)
5) Select the jars below lib/, do a right click -> Build Path -> Add to
Buildpath
6) Select the project node, right click and select Properties
7) Select 'Java Build Path' on the left panel
8) Select 'Libraries' tab on the right panel
9) Now you should see the jars, which you added before
10) Select one of the jars -> click on the arrow to the left of the jar
-> select Native Library Location and hit edit on the right side buttons
panel
11) Select 'Workspace' and browse to the project jzy3d, select folder
"native"
12) Repeat steps 10-11 for the other jar (either jogl.jar or
gluegen-rt.jar)
13) Download http://jzy3d.googlecode.com/files/org.jzy3d-0.8.2.jar, copy
to lib and add to Java build path as in 5)
14) Download
http://jzy3d.googlecode.com/files/org.jzy3d-dependencies.zip, unzip and
copy everything except for jogl.jar and gluegen-rt.jar to lib/, add to
build path as in 5)
15) Optional: download the demos from
http://jzy3d.googlecode.com/files/org.jzy3d-0.8.2-demos.zip
unzip and copy into C:\jzy3d\lib, hit F5 to refresh and add jars to
build path as in 5)

Hope, that gets you started!
Nils

Am 26.01.11 11:15, schrieb H�dipo:

Martin Pernollet

unread,
Jan 31, 2011, 11:49:50 AM1/31/11
to jz...@googlegroups.com
Thanks to those who replied: there is no "official" support team, everyone can participate.
The info Hédipo was looking for is standing in the FAQ (http://code.google.com/p/jzy3d/wiki/FAQ)
Regards,
Martin

2011/1/26 Nils Hoffmann <nils.h...@web.de>
Hi Hédipo!
Am 26.01.11 11:15, schrieb Hédipo:
Reply all
Reply to author
Forward
0 new messages