Re: though I can definitely see the classes under javax/media/j3d which I included in my CLASSPATH variable, it still complains about its nonexistence!

  • To: tomw@xxxxxxxxxxxxx
  • Subject: Re: though I can definitely see the classes under javax/media/j3d which I included in my CLASSPATH variable, it still complains about its nonexistence!
  • From: Victor Shum <vshum12@xxxxxxxxxxx>
  • Date: Thu, 30 Dec 2004 13:45:05 -0800 (PST)

Thanks for your clarification Tom. 
I tried deleting everything else except
/opt/visad-in-a-box and sourced it and did make
compile again. 
Still I got the errors. 

Think I should clarify on what I'm doing: 

I have three directories: 

1. /opt/visad-in-a-box which contains the .jar and the
extracted class files (without javax, I don't know
why); 
2. /usr/local/java3d-1_3_2-build4-linux-i586/ under
which I can see java3d media and javax class files; 
3. /usr/local/src/visad under which I have my source
visad files and also under which I ran the make
compile 
for compilation. 

In my CLASSPATH before I got your msg I put in all the
path links of 1. and 2. for compiling in 3. 

I guess I may have to copy over the subdirs in 1. and
2. under the root of 3. ??

Many Thanks!

Bst,
Victor


--- Tom Whittaker <tomw@xxxxxxxxxxxxx> wrote:

> Victor:
> 
> In VisAD, there are several "packages".  For
> example, "visad.data.text" is a 
> package.  In order for the classloader to find the
> contents of this package, 
> the CLASSPATH variable must point to the "root
> node".  This is usually the 
> visad.jar file itself.  (If you look at the files in
> the visad.jar file, 
> you'll file entries like: 
> "visad/data/text/TextAdapter.class")
> 
> However, when you extracted the contents of the
> visad.jar file, the "root 
> node", like Bill said, is the directory that
> contains the visad subdirectory.
> That's because the CLASSPATH says "look starting
> _here_".  And when looking 
> for the package "visad.data.text", it will look
> "starting here" for a 
> subdirectory "visad/data/text".
> 
> Thus, if you were "in" the "/opt/visad-in-a-box"
> directory when you extracted 
> the contents of the visad.jar file, your CLASSPATH
> should only point to 
> "/opt/visad-in-a-box".
> 
> Hope that helps clarify.
> 
> tom
> 
> 
> Victor Shum wrote:
> 
> > Dear Visad users,
> > 
> > I just don't understand why even I have included
> the
> > classes in my classpath (in the setenv line which
> I
> > sourced), when doing the make compile there is
> still
> > complaints of its non-existence!
> > 
> > Thanks for your advice in advance!
> > 
> > Bst,
> > Victor
> > 
> > setenv CLASSPATH
> >
>
"/opt/visad-in-a-box/visad:/opt/visad-in-a-box/visad:/usr/local/src:/usr/local/java3d-1_3_2-build4-linux-i586/lib/i386:/usr/local/java3d-1_3_2-build4-linux-i586/lib/ext/javax/media/j3d:/usr/local/java3d-1_3_2-build4-linux-i586/lib/ext/javax/vecmath:/usr/local/java3d-1_3_2-build4-linux-i586/lib/ext/com/sun/j3d:/opt/j2sdk1.4.2_04/:/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/javax:/opt/visad-in-a-box/visad/examples:/opt/visad-in-a-box/visad/util:/opt/visad-in-a-box/visad/java3d"
> > 
> > 
> >
>
/usr/local/src/visad/java3d/DirectManipulationRendererJ3D.java:31:
> > package javax.media.j3d does not exist
> > import javax.media.j3d.*;
> > 
> 
> -- 
> Tom Whittaker (tomw@xxxxxxxxxxxxx)
> University of Wisconsin-Madison
> Space Science and Engineering Center
> Cooperative Institute for Meteorological Satellite
> Studies
> Phone/VoiceMail: 608.262.2759
> 


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