Why do I get NoClassDefFoundError: java/awt/Desktop?
I'm trying to open an URI with Swing that I get above error. What is the reason and how can I fix it? When I do it in console everything is OK but when I do in GUI I get this error. I should say that I use Weblogic as server. Code private static void open(URI uri) { if (Desktop.isDesktopSupported()) { try { Desktop.getDesktop().browse(uri); } catch (IOException e) { /* TODO: error handling */ } } else { /* TODO: error handling */ } } Stack trace: Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: java/awt/Desktop at be.azvub.ext.bcfidownloder.BcfiDownloadPanel.open