How to lean (debug) javac
Jonathan Gibbons
Jonathan.Gibbons at Sun.COM
Wed Oct 3 07:37:22 PDT 2007
Wei,
We recently reorganized the source code and some of the documentation
still needs to be updated.
To fix the error regarding boot.java.home, create a file
"build.properties"
in the langtools directory, and in that, define boot.java.home to the
version of java you wish to use to build the compiler.
Regarding the instuctions at (2), these are out of date following the
reorganization.
The compiler can now be found under .../langtools/make/netbeans/compiler
-- Jon
On Oct 3, 2007, at 7:20 AM, Wei Jiang wrote:
> Hi,
>
> I am trying to follow instructions to debug (to learn) javac.
> I downloaded openjdk 7 source at: openjdk-7-ea-src-b21-27_sep_2007.zip
> and unzip'd. (I can not find source code of javac for 1.6).
>
> 1. at http://www.ahristov.com/tutorial/java-compiler/netbeans.html.
>
> When I go to directory C:\openjdk7b21\langtools\make\netbeans\compiler
> and "Open Project", the project opened without error. But the project
> name remains as "compiler". I do not see the same screen as you
> showed. I found a build.xml and tried to run it. I got the following
> errors:
>
>>>>>>>>>>>
> C:\openjdk7b21\langtools\make\build.xml:315: The following error
> occurred while
> executing this line:
> C:\openjdk7b21\langtools\make\build.xml:650: Cannot locate
> bootstrap java:
> please set boot.java.home to its location
> BUILD FAILED (total time: 0 seconds)
> <<<<<<<<<
>
>
> 2. I tried at http://nb-openjdk.netbeans.org/get-and-build.html
> I nivagate directories and see:
> ../j2se/make/netbeans/
> awt2d
> common
> j2se
> ...
> but there is no "compiler" directory. So I can not follow the
> instruction.
>
> Any thing I can do to follow an instruction to build-debug javac?
> Any information would be appreciated. Thanks in advance.
>
>
>
>
>
> ______________________________________________________________________
> ______________
> Shape Yahoo! in your own image. Join our Network Research Panel
> today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
>
>
More information about the compiler-dev
mailing list