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

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