200N/AUsing NetBeans to work on the langtools repository.
200N/A
200N/ANetbeans 6.0 or later is recommended.
0N/A
200N/AThe "langtools" project in this directory allows you to
200N/Aedit, run, test and debug the tools in the OpenJDK langtools
200N/Arepository.
0N/A
200N/AThe repository contains a number of tools:
200N/A apt, javac, javadoc and its doclets, javah and javap.
200N/A
200N/ABuild Properties.
0N/A
200N/ATo build this repository, you must set some properties for Ant.
200N/AYou can set these properties in a number of ways:
200N/A
200N/A- Set the properties in the Properties panel under Tool> Options> Ant.
200N/A Properties set this way will apply globally to all the langtools
200N/A repositories you may be working on.
0N/A
200N/A- Create a file build.properties in the root directory of a
200N/A langtools repository, and set the properties in that file.
200N/A These properties will be specific to that repository.
200N/A
200N/ATo build the repository, at a minimum you must set the "boot.java.home"
200N/Aproperty. To run the tools, you must also set "target.java.home". To
200N/Arun the regression tests, you must set "jtreg.home".
0N/A
200N/ABy default, the build and test targets will build and test all
200N/Aof these tools. The run and debug targets will prompt you for the
200N/Aname of a tool to execute.
0N/A
200N/AAs an alternative, you can focus on a single tool. When you do
200N/Athis, you will still see all the source code for all the tools,
200N/Abut the various Ant targets will now be focussed on the selected tool.
200N/ATo focus on a tool, bring up the context menu on the "langtools"
200N/Aproject (i.e. right-click on the project) and select "Select Tool".
200N/AThis brings up a dialog which allows you to specify which tool you
200N/Awish to work on, and the arguments to use if and when you run it.