Re: javax/media/j3d required though not used?


A couple of thoughts on this.

In the Windows world, I wanted to make it easy to get rolling with VisAD
and Jython, so I periodically create an install file that contains
everything they need -- Java, Java3D, visad.jar, jython.jar and some
scripts to get things rolling.  Perhaps you can take this approach as
well for your project?  WebStart might also be an option. I also know
that InstallWnere-Now (the freebie from zerog we use for packaging
programs in windows) can install a Java runtime that is customizable --
that is, you could include Java3D.

Secondly, yes you can probably use Java2D since none of that side
imports the J3D stuff (I believe) but I wanted to mention a trade-off
I've encountered recently:  If you have images that need to be reshaped
when displayed as a texture map (for example, a satellite image that
you're displaying in a VisAD box that has Latitude and Longitude as it's
axes), Java2D is considerably slower to display this than Java3D.  On
the other hand, if you resample the image first into a rectangle then
Java2D will do the job.

Hope that helps.


On Wed, 10 Jul 2002, Paul Shannon

> I am brand new to VisAD, and having trouble running the first
> example in Ugo Taddei's tutorial.  I get this exception:
>   java.lang.NoClassDefFoundError: javax/media/j3d/Behavior
> After reading the mailing list archive, I see that the
> recommended solution is to get a copy of Java 3D from sun.
> I am using java 1.4 on linux, and it appears that this
> library is not part of the standard distribution.
> However, all of my users will be obliged to do the same.  This
> presents a pretty big obstacle to my using VisAD.  I was
> just beginning to imagine all of the great things we could
> do with VisAD....
> Is it possible to use VisAD -without- Java 3D, as long as
> I am content with only 2D graphics?
> Thank you.
>  - Paul Shannon

Tom Whittaker
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Telephone/VoiceMail:  608.262.2759

  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: