Monday, August 20, 2007

Detecting the version of the Java VM you're in

This source code comes from the Derby source base. Very useful in cases where you want to load a particular class or do other things based on which VM you are running in. In Derby's case this is used to load the appropriate JDBC driver.

http://svn.apache.org/repos/asf/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/info/JVMInfo.java

No comments: