This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247905 - NoClassDefFoundError: Could not initialize class java.awt.dnd.DragSource
Summary: NoClassDefFoundError: Could not initialize class java.awt.dnd.DragSource
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-13 22:07 UTC by xav0989
Modified: 2015-09-14 14:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153068


Attachments
stacktrace (1.81 KB, text/plain)
2014-10-13 22:07 UTC, xav0989
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xav0989 2014-10-13 22:07:14 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Linux

User Comments:
GUEST: after program start

GUEST: just start the netbeans ide.

GUEST: I was trying to create a new java project.

xav0989: Started the application. Oracle Java 8 on Ubuntu 14.04.1 x64. Could not reproduce.

GUEST: This problem started appearing after I upgraded from Ubuntu 13.04 to 13.10.
I'm unable to load the Projects & Files view on the side menu

GUEST: Tried to view the project files.  Please help.  It didnt do anything but throw an error.

GUEST: Trying to Show Project View

GUEST: projects not open

GUEST: The window won't let me open the project view, or anything else for that matter

GUEST: unable to view projects in netbeans 7.4

GUEST: I open NetBeans IDE 6.9.1 and I have reseted the windows, perhaps before the loading prozess of NetBeans have been finished

GUEST: NoClassDefFoundError: Could not initialize class java.awt.dnd.DragSource

GUEST: Installed in Ubuntu, click Window > Projects

GUEST: ubuntu 14.04

GUEST: A java.lang.NoClassDefFoundError exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your /root/.netbeans/7.3.1/var/log folder.

GUEST: On ubuntu 14.04, just install netbeans 8.0 and run it. It will result in the same error




Stacktrace: 
java.lang.NoClassDefFoundError: Could not initialize class java.awt.dnd.DragSource
   at org.openide.explorer.view.ExplorerDragSupport.getDefaultGestureRecognizer(ExplorerDragSupport.java:241)
   at org.openide.explorer.view.ExplorerDragSupport.activate(ExplorerDragSupport.java:217)
   at org.openide.explorer.view.TreeView.setDragSource(TreeView.java:504)
   at org.netbeans.modules.project.ui.ProjectTab.<init>(ProjectTab.java:202)
   at org.netbeans.modules.project.ui.ProjectTab.<init>(ProjectTab.java:182)
   at org.netbeans.modules.project.ui.ProjectTab.getDefault(ProjectTab.java:332)
Comment 1 xav0989 2014-10-13 22:07:17 UTC
Created attachment 149881 [details]
stacktrace
Comment 2 xav0989 2014-10-13 22:20:34 UTC
I've been able to reproduce the bug and it is also preventing me from opening certain views (e.g. the project and file views), if I manage to get netbeans to open.
Comment 3 xav0989 2014-10-13 22:26:57 UTC
Apparently it's related to running java on MIR rather than X. https://bugs.launchpad.net/xmir/+bug/1232471
Comment 4 Ondrej Vrabec 2015-03-04 15:09:17 UTC
SEVERE [global]
java.lang.RuntimeException: failed to load system cursor: DnD.Cursor.CopyDrop : cannot load system cursor: CopyDrop.32x32
	at java.awt.dnd.DragSource.load(DragSource.java:135)
	at java.awt.dnd.DragSource.<clinit>(DragSource.java:147)

JDK problem
Comment 5 Antonin Nebuzelsky 2015-09-14 14:28:39 UTC
https://answers.launchpad.net/ubuntu/+question/236451