Eclipse Build Langtools Project

Version 1



    Building via CLI


    To build Langtools via the command-line interface (InfraBuild) perform the below actions:

     cd ~/sources//jdk8_tl/common/makefiles make clean langtools NEWBUILD=true &> langtoolsInfrabuild.log 


    Configurating and building in Eclipse


    Change the for Langtools by doing the following:

     cd ~/sources/jdk8_tl/langtools/ 

    Add below settings to the file: = /usr/lib/jvm/java-7-openjdk-amd64 boot.javac.source = 7 = 7 


    Copy the file from the ~/sources/jdk8_tl/langtools/make/ folder to the ~/sources/jdk8_tl/langtools/make/eclipse/langtools folder.

    In addition for Langtools, change the following two tags at the top of the file from


     <project name="langtools-netbeans" default="build" basedir="../../.."> <property name="" location="make/netbeans/langtools/nbproject/private/"/> 




     <project name="langtools-eclipse" default="build" basedir="../../.."> <property name="" location="make/eclipse/langtools/ecproject/private/"/> 


    Ensure the in the /home/openjdk/sources/jdk8_tl/langtools/make/ folder has the below line in it otherwise add/update it: = usr/lib/jvm/java-7-openjdk-amd64 

    Build the project via the right-mouse click Run As > Ant Build option and wait for it to finish.




    Build messages: logs

    - A successful run of the build results in the output of the following log messages:



    Build output: artefacts

    The general Langtools build artefacts are a tree of directories as shown below and can be found at ~/sources/jdk8_tl/build/linux-x86_64-normal-server-release/langtools:

        btclasses classes dist gensrc genstubs