Sorry, I should have included a sample...Here is the output from the command
window when I type 'gmake':
==========
e:\Data\...\idm> gmake
javac -classpath e:\Data\projects\idm\cougaar\projects\idm\lib NSNAsset.java
javac -classpath e:\Data\projects\idm\cougaar\projects\idm\lib
IDMManagerPlugIn.java
IDMManagerPlugIn.java:13: cannot resolve symbol
symbol : class NSNAsset
location : package idm
import alp.clusters.dscc.idm.NSNAsset;
IDMManagerPlugIn.java:33: cannot resolve symbol
symbol : class NSNAsset
location : class alp.clusters.dscc.idm.IDMManagerPlugIn
NSNAsset nsn = new NSNAsset ("0000", "101101010");
2 errors
gmake: *** [IDMManagerPlugIn.class] Error 1
e:\Data\...\idm>
==========
However, if I type
==========
e:\Data\...\idm> javac -classpath
e:\Data\projects\idm\cougaar\projects\idm\lib IDMManagerPlugIn.java
==========
it compiles fine with no errors. I thought at first I might be doing
something stupid with Java, but then I didn't understand why it compiles
fine if I type the command by hand.
The makefile reads:
==========
#############################################################
# Paths
#############################################################
ALP_INSTALL_PATH = e:\Data\projects\idm\cougaar
LIBPATH = $(ALP_INSTALL_PATH)\projects\idm\lib
#############################################################
# Sources and Intermediate Files
#############################################################
SRCS = \
NSNAsset.java \
IDMManagerPlugIn.java \
IDMExpanderPlugIn.java
OBJS = $(addsuffix .class, $(basename $(SRCS)))
#############################################################
# Pattern Rules
#############################################################
%.class: %.java
javac -classpath $(LIBPATH) $<
#############################################################
# Targets
#############################################################
all: $(OBJS)
clean:
-$(RM) $(RMFLAGS) $(OBJS)
.PHONY: all clean
==========
Once again, I appreciate any help you can give. Thanks,
--Matt
-----Original Message-----
From: Eric Christopher [SMTP:[EMAIL PROTECTED]]
Sent: Sunday, August 20, 2000 12:49 PM
To: Moore, Mathew L
Cc: [EMAIL PROTECTED]
Subject: Re: Make and Java
Mathew,
I haven't seen such a problem myself. Perhaps if you were
to give
a small makefile example and let us see the error output we could
narrow
it down for you though.
-eric
On Sun, 20 Aug 2000, Moore, Mathew L wrote:
> Please forgive me if this is not the right list to be posting this
question.
>
> I am running the Win32 version of GNU Make v3.77 and attempting to
use it to
> compile a bunch of Java code (using jdk 1.3). The problem: I get
I get a
> number of unresolved symbol errors when the Java compiler is
executed
> through Make. These errors do not appear when I compile directly
from the
> command line, typing exactly the command that Make echos to the
screen.
>
> Has anyone else encountered such a problem? I use Make vigorously
to handle
> the compilation of all of my C and C++ source code, but I am new
to Java and
> this is the first time I've tried using it to compile Java code.
>
> I do not subscribe to this mailing list, so please respond to me
personally.
> Thanks,
>
> --Matt
>
>