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
    • 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.