How to lean (debug) javac

Wei Jiang _weijiang_ at yahoo.com
Wed Oct 3 07:20:42 PDT 2007


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