Newbie question -- installing and running Jzy3D in Netbeans / Mac OS X

1,460 views
Skip to first unread message

Rafael Santos

unread,
Aug 2, 2012, 10:44:27 AM8/2/12
to jz...@googlegroups.com
Hello there,

I've been trying to get the basic examples of jzy3d to work in a Macbook pro, under Netbeans.

I have jogl installed and working on Netbeans, following instructions from http://netbeans.dzone.com/nb-getting-started-jogl -- some examples works without problems.

When trying to compile the basic example from jzy3d I run into several problems. I think it is not clear to me what I need to copy, and where.

Here are my steps:
  1. Create a demo JOGL project (just to make sure the jogl environment, libraries, etc are all set)
  2. Run the demo (gears, in this case) -- it is working
  3. Imported org.jyz3d-0.9.jar to the libraries in this project.
  4. Add another source to this project -- I've used one of the examples in http://www.jzy3d.org/tutorial.php, fixed it a bit (field declaration).
  5. Compiled it -- got the dreaded "Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/opengl/GLCapabilitiesImmutable at demos.gears.TEST.main(TEST.java:39)
Line 39 is Chart chart = new Chart(Quality.Advanced);

Something is missing, but what?
I was unable to find clear directions on how to install jzy3d in OS X to work with Netbeans.
I'd rather start working with the installation of JOGL I have (since it is working).

Any suggestion welcome!

thanks
Rafael


Nils Hoffmann

unread,
Aug 2, 2012, 1:36:58 PM8/2/12
to jz...@googlegroups.com
Hi Rafael,
the NetBeans OpenGL Plugin only supplies JOGL 1.1. This means, you need
to use jzy3d 0.8.4 (at least this is what works for me in NetBeans 7.1).
You can get it here:

http://www.jzy3d.org/download-0.8.php

Add the org.jzy3d-0.8.4.jar to your project and remove 0.9, then it should work.
You may need the other Jzy3d dependencies as well, though!

Cheers,
Nils
 
Am 02.08.12 16:44, schrieb Rafael Santos:

Rafael Santos

unread,
Aug 2, 2012, 4:21:10 PM8/2/12
to jz...@googlegroups.com
Nils,

Thanks for the tip -- worked in the first try!

Now let me go back to torturing some datasets :-)

cheers
Rafael
Reply all
Reply to author
Forward
0 new messages