// First choice is to try the Desktop library from java 6, if available
try {
Class<?> d = Class.forName("java.awt.Desktop");
// First choice is to try the Desktop library from java 6, if available
try {
Class<?> d = Class.forName("java.awt.Desktop");