Netbeans在ubuntu17.10

时间:2017-11-29 15:03:55

标签: ubuntu netbeans

有没有人知道" java.lang.RuntimeException:无法加载系统光标:DnD.Cursor.CopyDrop"?在新安装Ubuntu 17.10(xfce),OpenJava1.8。之后,Netbeans在显示启动时冻结。其他Java应用程序正常运行。 〜。/。netbeans / 8.2 / var / log / messages.log显示:

        
    

日志会议:2017年11月29日星期三下午3:02:48 CET     系统信息:产品版本= NetBeans IDE 8.2(Build 201609300101)(#5fd841261bf9)操作系统= Linux     版本4.13.0-17-在amd64 Java上运行的通用; VM;供应商=     1.8.0_151; OpenJDK 64位服务器VM 25.151-b12; Oracle Corporation Runtime = OpenJDK运行时环境     1.8.0_151-8u151-b12-0ubuntu0.17.10.2-b12 Java Home = / usr / lib / jvm / java -8-openjdk-amd64 / jre系统区域设置;编码=     de_DE(nb); UTF-8主目录= / home / ralph当前     目录= / home / ralph用户目录=     /home/ralph/.netbeans/8.2缓存目录=     /home/ralph/.cache/netbeans/8.2安装=     /usr/local/netbeans-8.2/nb                                 /usr/local/netbeans-8.2/ide                                 /usr/local/netbeans-8.2/extide                                 /usr/local/netbeans-8.2/java                                 /usr/local/netbeans-8.2/apisupport                                 /usr/local/netbeans-8.2/websvccommon                                 /usr/local/netbeans-8.2/profiler                                 /usr/local/netbeans-8.2/harness                                 /usr/local/netbeans-8.2/javafx                                 /usr/local/netbeans-8.2/platform

  
     

[..]

     

java.lang.RuntimeException:加载系统游标失败:   DnD.Cursor.CopyDrop:无法加载系统光标:CopyDrop.32x32 at   java.awt.dnd.DragSource.load(DragSource.java:135)at   java.awt.dnd.DragSource。(DragSource.java:148)引起:   java.lang.ExceptionInInitializerError at   org.netbeans.core.windows.view.ui.toolbars.DnDSupport。(DnDSupport.java:118)     在   org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.dndSupport(ToolbarConfiguration.java:132)     在   org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.refresh(ToolbarConfiguration.java:312)     在   org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.activate(ToolbarConfiguration.java:400)     在org.openide.awt.ToolbarPool.activate(ToolbarPool.java:245)at   org.openide.awt.ToolbarPool.setConfigurationNow(ToolbarPool.java:329)     在org.openide.awt.ToolbarPool.setConfiguration(ToolbarPool.java:301)     在   org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java:567)     在   org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(DefaultView.java:542)     在   org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:187)     在   org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:275)     在   org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequestor.java:264)     在   org.netbeans.core.windows.ViewRequestor.postVisibilityRequest(ViewRequestor.java:201)     在   org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:121)     在org.netbeans.core.windows.Central.setVisible(Central.java:140)at   org.netbeans.core.windows.WindowManagerImpl.setVisible(WindowManagerImpl.java:931)     在   org.netbeans.core.windows.WindowSystemImpl.show(WindowSystemImpl.java:105)     在org.netbeans.core.GuiRunLevel $ InitWinSys.run(GuiRunLevel.java:244)     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)     在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)at   java.awt.EventQueue.access $ 500(EventQueue.java:97)at   java.awt.EventQueue $ 3.run(EventQueue.java:709)at   java.awt.EventQueue $ 3.run(EventQueue.java:703)at   java.security.AccessController.doPrivileged(Native Method)at   java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)     在java.awt.EventQueue.dispatchEvent(EventQueue.java:726)at   org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)   [抓住]   java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)     在   java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     在   java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     在   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     在   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)   java.lang.RuntimeException:无法加载系统游标:CopyDrop.32x32     at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1541)     在java.awt.Toolkit.getDesktopProperty(Toolkit.java:1803)at   java.awt.dnd.DragSource.load(DragSource.java:131)at   java.awt.dnd.DragSource。(DragSource.java:148)at   org.netbeans.core.windows.view.ui.toolbars.DnDSupport。(DnDSupport.java:118)     在   org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.dndSupport(ToolbarConfiguration.java:132)     在   org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.refresh(ToolbarConfiguration.java:312)     在   org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.activate(ToolbarConfiguration.java:400)     在org.openide.awt.ToolbarPool.activate(ToolbarPool.java:245)at   org.openide.awt.ToolbarPool.setConfigurationNow(ToolbarPool.java:329)     在org.openide.awt.ToolbarPool.setConfiguration(ToolbarPool.java:301)     在   org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java:567)     在   org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(DefaultView.java:542)     在   org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:187)     在   org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:275)     在   org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequestor.java:264)     在   org.netbeans.core.windows.ViewRequestor.postVisibilityRequest(ViewRequestor.java:201)     在   org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:121)     在org.netbeans.core.windows.Central.setVisible(Central.java:140)at   org.netbeans.core.windows.WindowManagerImpl.setVisible(WindowManagerImpl.java:931)     在   org.netbeans.core.windows.WindowSystemImpl.show(WindowSystemImpl.java:105)     在org.netbeans.core.GuiRunLevel $ InitWinSys.run(GuiRunLevel.java:244)     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)     在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)at   java.awt.EventQueue.access $ 500(EventQueue.java:97)at   java.awt.EventQueue $ 3.run(EventQueue.java:709)at   java.awt.EventQueue $ 3.run(EventQueue.java:703)at   java.security.AccessController.doPrivileged(Native Method)at   java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)     在java.awt.EventQueue.dispatchEvent(EventQueue.java:726)at   org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)     在   java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)     在   java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     在   java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     在   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     在   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)   引起:java.awt.AWTException:异常:类   java.lang.IllegalArgumentException Width(0)和height(0)必须是   在创建游标CopyDrop.32x32时发生非零   java.awt.Cursor.getSystemCustomCursor(Cursor.java:363)at   sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1539)     ......还有36个信息   [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]:   未配对的许可证00000008,没有任何模块。

1 个答案:

答案 0 :(得分:0)

根据您的错误,您正在运行的Java版本似乎是:

openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)

根据Netbeans bugzilla的说法,这被报告为一个错误:Bug 257554 - RuntimeException: failed to load system cursor: DnD.Cursor.CopyDrop : cannot load system cursor: CopyDrop.32x32

事实证明,它与Unity-Mir中报告的错误相关联:Java applications are missing X11 resources - XQueryBestCursor return 0,0.

从评论中,JDK版本以及旧的XMir(不再支持)负责。无论如何,它由最后的XMir版本修复。

  

这将是Java中的一个错误,它无法处理Xorg   软件光标。这真是一个与Mir无关的问题。我只是   将X置于触发错误的(有效)模式。

虽然,我们可以通过在XMir中实现完整的硬件游标支持来解决Java错误......

  

XMir 1.0(旧的Xorg扩展名)现已弃用,而不是   维持或固定。它被新的'Xmir'二进制文件(包   'xmir')在Ubuntu 15.10中引入了wily。

  

注意:新的Xmir使用硬件光标(如果可用的话)   桌面)。因此,如果这个bug仍然存在,它只会打开   移动(Android Mir平台)。

您应该考虑升级到JAVA的“新”版本。

简单解决

1-编辑以下文件:

nano /etc/default/grub 

2-将rhgb quiet替换为nomodeset

3-在终端上运行:grub2-mkconfig -o /boot/grub2/grub.cfg

4-重启。