[vtkusers] Compilation problem with java

David D. Marshall gte552m at prism.gatech.edu
Tue Jun 13 09:58:10 EDT 2000


I wish that were the case for my javac (I think its IBM's Linux JDK 1.2, it's at home and I'm
not), but if I run make from {vtk_home} and then run make again, it recompiles ALL of the java
sources :(.  I know because I was doing this last night.

"Simon J.Rees" wrote:

> David,
>     Just to add to what Dan said, I beleive javac also checks dates of files
> in a similar way to 'make'. In other words if you change one java file and
> do: javac -d {class_path} {vtk_home}/java/vtk/*.java, only the file that
> changed gets recompiled. It is not therefore necessary to specify
> dependancies in the make file.
>
> Also I agree with Dan that some of this stuff should be in a FAQ ( I also
> had to find out the hard way)
>
> -simon
>
> > David,
> >
> >   Actually, you do not have to manually compile anything!  javac, unlike
> > CC resolves dependancies by itself, IF javac knows where you have already
> > compiled the classes.  Setting CLASSPATH or adding a -classpath flag to
> > javac tells javac how to resolve dependancies.
> >
> >   If you try to compile things by hand as they crop up as errors, you'll
> > be at it a _long_ time (I know, I've tried).
> >
> > -dan
> >

--
David D. Marshall
ARTLab System Administrator/GRA
Georgia Institute of Technology, Atlanta Georgia, 30332
http://www.ae.gatech.edu/research/artlab/artl/artlab.html
mailto:gte552m at prism.gatech.edu
think: Why anonymity is good http://www.cato.org/pubs/briefs/bp-054es.html






More information about the vtkusers mailing list