Is there any way to use GNU make for "depend"
purposes with JDK?

At first glance, javac seems to handle every *.java
file imported by the main source you compile. Problem 
is, outside the current directory (i.e. in other
packages), more recent *.java sources seem to be
ignored if *.class files are present. Inside the
current directory, I encountered a weird effect:

I compiled Server. During the process, I got an
error on ClientConnector. I fixed the problem,
compiled Server again - and got:

java.lang.NoClassDefFoundError: 
       bk.server.ClientConnector
       at 
       at bk.server.Server.<init>(Server.java:53)

The "at" line was indeed blank. I had to remove
all *.class files manually and compile again to
get rid of that error.

I would really like to avoid doing "rm *.class"
in all and every package directory that changes.
For larger projects, compiles get a bit slow. 
I would also avoid maintaining dependencies
manually (on class level). Does the Emacs JDE, or
any other freely available solution, handle this?


                                      b.

Reply via email to