Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.

Lexical Tools

Java 5.0 - Ant/javac

Codes developed before Java 5.0 could be compiled under JDK 1.5. However, it could generate compile warnings. Such as unchecked, deprecated, etc.. Two ways of compile options are suggested:

  • javac

    use -Xlint option

    Example:

    
    > javac -Xlint foo.java
    
  • Ant

    use -Xlint in compiler argument option

    Example:

    
    <javac srcdir=sources
           destdir=classes>
    
    <compilerarg value="-Xlint">
    </javac>