Can JRE version be specified in the code?

Can we specify that a code to be run with a particular version of JRE and the rest with the default one?
[111 byte] By [dev.gurgaona] at [2007-11-27 5:08:18]
# 1
you can check for version and run code conditionally http://java.sun.com/j2se/1.3/docs/api/java/lang/System.html#getProperties()but you'll have to compile under the earliest supported version
developer_jbsa at 2007-7-12 10:27:43 > top of Java-index,Desktop,Runtime Environment...
# 2

This tells you how to specify the JRE with 1.6 (and later 1.5 versions I think)

http://java.sun.com/javase/6/webnotes/family-clsid.html

plus look at these

http://ww2.cs.fsu.edu/~steele/XHTML/appletObject.html

http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/version.html

http://java.sun.com/j2se/1.5.0/docs/guide/plugin/index.html

but be prepared for some fun :)

johnnywintermutea at 2007-7-12 10:27:43 > top of Java-index,Desktop,Runtime Environment...