import java.awt.Desktop; import java.io.IOException; import java.net.URI; public class Test { public static void main(String[] a)throws Exception { Desktop desktop = null; if (Desktop.isDesktopSupported()) { desktop = Desktop.getDesktop(); } desktop.mail(); } }