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+ Upgrade in lvg.2007 or later version(s)

Java 2 Platform Standard Edition 5.0 is a major feature release. It enhances performance, garbage collection, and lots of language features. Lvg has been upgraded its code to Java 1.5 in 2006 release; Java 1.6 in 2009 release. There are significant changes from Java 1.4 to Java 1.5. Accordingly, we use Java 1.5 to illustrate the upgrade issues. There are two ways to use lvg Java APIs in 2007 or later release:

I. Pure Java 1.5 (recommended):

  • User's source code: upgrade to Java 1.5
  • JDK/JRE: upgrade to Java 1.5
  • lvg version: lvg.${YEAR}

Bellows are the modifications in lvg for this upgrade:

II. Semi Java 1.5:

  • User's source code: stay in 1.4
  • JDK/JRE: upgrade to Java 1.5
  • lvg version: lvg.${YEAR}

You can't run your applications with lvg.2007 or later (java 5.0) APIs if:

  • Your source code is compiled in JDK 1.4 (or before)
  • Run your applications in JRE 1.4 (or before)

However, you may recompile your Java code with JDK 1.5 without any modifications and then run your applications in JRE 1.5 as follows:

  • Download and install the latest JDK 1.5 to your machine
  • Compile your java codes with 1.4 version option:
    • javac -source 1.4 foo.java
    • Ant: add attribute "1.4" to parameter "source" (source="1.4") for compile task javac in build.xml
    • Then, you will be able to run your application (in JRE 1.5)!
  • Use "java -version" or "javac -version" to check version on JRE and JDK, respectively.