NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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

  • To: Bill Hibbard <billh@xxxxxxxxxxxxx>
  • Subject: Re: javax/media/j3d required though not used?
  • From: Tom Whittaker <tomw@xxxxxxxxxxxxx>
  • Date: Wed, 10 Jul 2002 15:36:29 -0500 (Central Daylight Time)
Bill:

I thought this was odd, so I explored it at bit:

> This is news to us (but I rarely run on machines without
> Java3D installed). Can you tell us a specific program from
> the tutorial gives the error message:
>
> >    java.lang.NoClassDefFoundError: javax/media/j3d/Behavior
>
> If its a program that doesn't construct any DisplayImplJ3D
> then you may have found a bug in the recent visad.jar.

I was able to duplicate this effect by running Ugo's P1_01 example
(which only uses DisplayImplJ2D) after removing the J3D jar files.
Here's the stacktrace...

[volante]/c/src/visad/tutor$/c/jdk1.3/jre/bin/java P1_01
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/media/j3d/Behav
ior
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at visad.DisplayImpl.clearMaps(DisplayImpl.java:1830)
        at visad.java2d.DisplayImplJ2D.clearMaps(DisplayImplJ2D.java:297)
        at visad.DisplayImpl.<init>(DisplayImpl.java:166)
        at visad.java2d.DisplayImplJ2D.<init>(DisplayImplJ2D.java:233)
        at visad.java2d.DisplayImplJ2D.<init>(DisplayImplJ2D.java:211)
        at visad.java2d.DisplayImplJ2D.<init>(DisplayImplJ2D.java:190)
        at P1_01.<init>(P1_01.java:108)
        at P1_01.main(P1_01.java:155)


--
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: