Giter Site home page Giter Site logo

sunzxyong / langtools Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 7.12 MB

The langtools repository of OpenJDK , including javac source code.

License: GNU General Public License v3.0

XSLT 0.01% Java 99.36% Shell 0.31% Makefile 0.07% HTML 0.06% Roff 0.20%
javac langtools openjdk

langtools's Introduction

langtools

The langtools repository of OpenJDK , including javac source code.


Build

For Ant.

  • After the OpenJDK version of 9
cd langtools/make
ant -Dlangtools.jdk.home=${JAVA_HOME}
  • before the OpenJDK version of 9
cd langtools/make
ant -Dboot.java.home=${JAVA_HOME}

The JAVA version of the compilation environment must be the same as the langtools version.

You can also use GNU make.

Output

The output of the build is as follows:

 build
   |-bin (scripts to invoke various tools, javac, javah etc.)
   |-genrsc (generated sources - i.e. properties)
   |-modules (compiled classes in a modular layout)
   |-jtreg (test work/results)
   |-toolclasses (tools used for building - like the property compiler)

for more, see http://hg.openjdk.java.net/


Building the "langtools" workspace.

The "langtools" workspace can be built from the command line with Ant. The build file is make/build.xml, in conjunction with make/build.properties. Some additional user-specific properties files are also read, to allow you to customize selected properties as needed.

Individual tools within the workspace can also be built and worked on with NetBeans, using the projects in the make/netbeans directory.

The "langtools" workspace can also be built from the command line with GNU Make, although the Makefile is simply a wrapper around the Ant build file. This is provided for systems (such as the full OpenJDK build) that expect to be able to build this workspace with GNU Make.

System Requirements: Ant: version 1.6.5 or later NetBeans: version 6.0 or later (optional) JDK: currently version 1.5.0, although 1.6.0 is recommended OS: any system supporting the above tools

For more information: Ant: http://ant.apache.org/ GNU Make: http://www.gnu.org/software/make/ NetBeans: http://www.netbeans.org/

Testing the "langtools" workspace.

The primary set of tests for the compiler is the compiler TCK. This tests that the compiler performs according to the specifications in JLS and JVMS.

In addition, there is a substantial collection of regression and unit tests for all the tools in the main langtools test/ directory.

Finally, there is a small set of tests to do basic validation of a build of the langtools workspace for use by JDK. These tests check the contents of the dist/ directory generated by the build, and verify that the various tools can do basic "Hello World"-style processing. These tests should be run by jtreg, with the -jdk option set a version of JDK capable of running the default output of the javac compiler in this workspace. Currently, this means JDK 6 or better.

langtools's People

Contributors

sunzxyong avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.