bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make: Win32 make and java: unresolved symbols


From: Donald B. McGee
Subject: Re: make: Win32 make and java: unresolved symbols
Date: Fri, 09 Feb 2001 02:47:03 GMT

Thanks to Matt  Moore for suggesting this:

JAVAC = w:/jdk130/bin/javac
#CLASSPATH = -classpath
/w/jdk130/lib/classes.zip:/w/webl510/myserver/CarSuiteSvlt.jar:/w/webl510/lib/weblogicaux.jar
CLASSPATH = -classpath
"w:\jdk130\lib\classes.zip;w:\webl510\myserver\CarSuiteSvlt.jar;w:\webl510\lib\weblogicaux.jar"

all : t.class
 cp t.class w:/webl510/myserver

t.class : t.java
 ${JAVAC} ${CLASSPATH} t.java

I'd guess that because the Sun javac compiler is a Win32 binary, it doesn't 
know how to handle
the path syntax the make digests just fine.

Donald

"Donald B. McGee" wrote:

> I'm running the cygnus make version 3.79.1 under Windows 2000
> Pro.  I'm trying to build a java class.  The following batch file
> works fine:
>
> REM this is one line, ignore any wrap
> w:\jdk130\bin\javac -classpath
> w:/webl510/myserver/CarSuiteSvlt.jar;w:/webl510/lib/webLogicaux.jar;w:/jdk130/lib/classes.zip
> t.java
>
> REM another line
> copy t.class w:\webl510\myserver
>
> But this makefile fails:
>
> JAVAC = /w/jdk130/bin/javac
> CLASSPATH = -classpath
> /w/jdk130/lib/classes.zip:/w/webl510/myserver/CarSuiteSvlt.jar:/w/webl510/lib/weblogicaux.jar
>
> all : t.class
>  cp t.class /w/webl510/myserver
>
> t.class : t.java
>  ${JAVAC} ${CLASSPATH} t.java
>
> The zip and jar files are apparently being found (since I can
> create the "can't find file" error by setting the paths to "w:\
> ...), but symbols that are being resolved properly in the batch
> file are unresolved in the makefile.  The errors say that the
> packages in the jar files don't exist, and that the symbols
> defined the jar files can't be resolved.
>
> The result is the same whether I execute make from a bash shell
> with MAKE_MODE=UNIX or from a DOS prompt. Drive w: is properly
> mounted to /w under Cygwin, since I can do an ls on it and in any
> case the compiler is executing.
>
> Any ideas?
>
> --
> Donald B. McGee
> XFI Corporation
> www.xfi.com

--
Donald B. McGee
XFI Corporation
www.xfi.com
206.729.7478
206.524.3044 fax




reply via email to

[Prev in Thread] Current Thread [Next in Thread]