Multiple file compilation patch

Mark Wielaard mark@klomp.org
Mon Mar 19 09:56:00 GMT 2001


Hi,

On Mon, Mar 19, 2001 at 09:24:57AM -0700, Tom Tromey wrote:
> 
> This happens because gcj was written against an earlier "spec".  I
> believe in 1.1 the -classpath option did override the default
> classpath.
> 
> With the 1.2 javac there doesn't seem to be any way to override the
> default.

Yes there is. Look at the man page for javac (1.2)
< http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/javac.html >

They have multiple options to configure which sources and classes to use
during compilation.

    -classpath to set the user classpath (but not the standard classes)
    -bootclasspath to set the standard library classes
    -extdirs to specify a different directory for finding the standard
    exttension classes
    -sourcepath to specify where to find the java source files to compile

There is even an -Xverbosepath option that shows how the classes/sources
where searched for.

It might be a good idea to make a wrapper for gcj which takes the same
arguments as the javac tool.

Cheers,

Mark

-- 
Stuff to read:
    < http://www.toad.com/gnu/whatswrong.html >
  What's Wrong with Copy Protection, by John Gilmore



More information about the Java mailing list