Re: Compilation from source fails

Michael Koch <[email protected]> Sun, 21 Mar 2004 18:20:44 -0500
Newsgroups gmane.comp.java.jgloss
Message-ID <[email protected]>
> |  leggewie-hj3/[email protected] /cygdrive/d/Quellcode/jgloss/jgloss-1.0.6
> |  $ make jgloss
> |  javac -deprecation -d . -classpath ":./src" src/jgloss/JGloss.java src/jgloss/Ja
> |  vaPreferences.java src/jgloss/dictionary/GDict.java src/jgloss/dictionary/EDictN
> |  IO.java
> ...
> It appears that the compiler has trouble including the 'ui'-directory.
> I do not know how to resolve this, though.

I guess the problem is that javac, being compiled for Windows, expects DOS 
pathname conventions for the -classpath option, while the cygwin environment 
supplies UNIX-style paths. You could hack the MAKEFILE to either manually 
set the classpath to ".\src" or use the the cygwin-included function to 
convert UNIX to DOS pathnames (I think it is called "cygpath"). 
Alternatively, you could search for a Java compiler built for cygwin 
(perhaps the jikes compiler is ported?).

I am currently experimenting with porting the build script to ant, which 
would allow truly platform independend builds.

Michael Koch
JGloss programmer



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click