Mixing class file versions
I would like to use SystemTray (a 1.6 feature) in an application that could well be run on 1.5 JVMs. In order to do so, I think I have to target compile the main class to 1.5 and in that main class test the JVM version. If the JVM version is 1.6 then it is safe to load the classes compiled with 1.6 features. And if I am not mistaken the 1.6 compiled class must be loaded explicitly.
Will this approach work? Are there any other gotchas I need to be aware of? When is it likely that ~80% of existing computers will have 1.6 installed? Is it too heavy handed to install 1.6 automagically when installing the app?