[JSR308] Building on a Mac
Niko Matsakis
niko at alum.mit.edu
Wed Jul 23 16:05:20 EDT 2008
> Can you please run the following script and send us aall the results:
>
>> cd /path/to/langtools/make
>> echo $JAVA_HOME
>> java -version
>> ant build-javac
>> ../dist/bin/javac -version
No problem. I believe the various environmental variables are all set
properly (in particular, JAVA_HOME, boot.java.home, and
target.java.home are all set to the same thing). Here is the output,
as captured by "script". The [echo] lines in the ant build output
were added by me, in an effort to understand what it was doing.
In the meantime, I have found that I *can* run the pre-built checkers
binaries, I just can't seem to build them myself.
Niko
(output follows:)
> Script started on Wed Jul 23 22:01:54 2008
> ;echo $JAVA_HOME
> /usr/local/stow/soylatte16-i386-1.0.2/
> ;java -version
> java version "1.6.0_03-p3"
> Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
> landonf_03_feb_2008_02_12-b00)
> Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
> landonf_03_feb_2008_02_12-b00, mixed mode)
> ;ant build-javac
> Buildfile: build.xml
>
> -def-check:
>
> -check-boot.java.home:
>
> -def-pcompile:
>
> -def-build-classes:
>
> -def-build-jar:
>
> -def-build-tool:
>
> -def-build-bootstrap-tool:
>
> build-bootstrap-javac:
> [echo] gensrc.dir=/Users/niko/svn/nmatsaki/part/jsr308/
> langtools/build/bootstrap/gensrc
> [echo] name=javac;classes.dir=/Users/niko/svn/nmatsaki/part/
> jsr308/langtools/build/bootstrap/classes;includes=${javac.includes}
> [jar] Warning: skipping jar archive /Users/niko/svn/nmatsaki/
> part/jsr308/langtools/build/bootstrap/lib/javac.jar because no files
> were included.
>
> build-javac:
> [echo] gensrc.dir=/Users/niko/svn/nmatsaki/part/jsr308/
> langtools/build/gensrc
> [echo] name=javac;classes.dir=/Users/niko/svn/nmatsaki/part/
> jsr308/langtools/build/classes;includes=${javac.includes}
> [jar] Warning: skipping jar archive /Users/niko/svn/nmatsaki/
> part/jsr308/langtools/dist/lib/javac.jar because no files were
> included.
> [jar] Building jar: /Users/niko/svn/nmatsaki/part/jsr308/
> langtools/dist/lib/javac.jar
>
> BUILD SUCCESSFUL
> Total time: 1 second
> ;../dist/bin/javac -version
> Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/
> tools/javac/Main
> ;exit
>
> Script done on Wed Jul 23 22:02:19 2008
More information about the JSR308
mailing list