You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Klaus Martinschitz <kl...@gmail.com> on 2019/07/14 04:52:01 UTC

Netbeans 11 - OpenJFX 13-ea+9 - Maven - : cannot load system cursor: CopyDrop.32x32

Hello,

 

I want to use OpenJFX within Netbeans RCP, i.e. show 3D structures in the
Netbeans RCP. Here comes the simplest description

*         M1         App-branding-aggregator modules

*         M2         Netbeans JavaFX Module (call it a wrapper module)

*         M3         Native Java module containing my Java 3D functions
which have dependencies on OpenJFX libraries.

 

I can test my M3 methods within a simple generated test method, so OpenJFX
works, for sure. This means also the dependencies  are correctly and
completely downloaded by Maven.

Then I add the M3 to M2 (Maven scope is compile).

Then I add my M2 to M1.

Compile everything and try to start the application.

 

On startup following error occurs..

 

java.lang.RuntimeException: failed to load system cursor:
DnD.Cursor.CopyDrop : cannot load system cursor: CopyDrop.32x32

                at
java.desktop/java.awt.dnd.DragSource.load(DragSource.java:137)

                at
java.desktop/java.awt.dnd.DragSource.<clinit>(DragSource.java:150)

Caused: java.lang.ExceptionInInitializerError

                at
org.netbeans.core.windows.view.ui.toolbars.DnDSupport.<clinit>(DnDSupport.ja
va:118)

                at
org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.dndSupport(T
oolbarConfiguration.java:132)

                at
org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.refresh(Tool
barConfiguration.java:312)

                at
org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.activate(Too
lbarConfiguration.java:400)

                at
org.openide.awt.ToolbarPool.activate(ToolbarPool.java:245)

                at
org.openide.awt.ToolbarPool.setConfigurationNow(ToolbarPool.java:329)

                at
org.openide.awt.ToolbarPool.setConfiguration(ToolbarPool.java:301)

                at
org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java
:567)

                at
org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(Def
aultView.java:542)

                at
org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:187)

                at
org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:2
75)

                at
org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequest
or.java: 264)

 

Of course, I googled and found some answers to this topics but couldn't find
a solution.

If I look at the error message it seems as if Netbeans tries to load a
cursor in the org.netbeans.core.windows.view.ui.toolbars.DnDSupport
constructor using the method java.awt.dnd.DragSource.load from module
java.desktop. Now module java.desktop seems to be a Java module.

Could it be that simple that only the cursor image is not within the module
java.desktop?

 

But why is my OpenJFX code running natively without Netbeans???

 

Thanks a lot for answer.

 

Regards,

Klaus


Re: Netbeans 11 - OpenJFX 13-ea+9 - Maven - : cannot load system cursor: CopyDrop.32x32

Posted by Geertjan Wielenga <ge...@apache.org>.
Maybe this helps:

https://github.com/geertjanw/openjfxnbp

Gj

On Sun, Jul 14, 2019 at 11:22 AM Geertjan Wielenga <ge...@apache.org>
wrote:

> A wrapper module, why is that needed in a Maven application?
>
> Unlikely anyone can help unless you can point to code on GitHub that can
> be looked at.
>
> Gj
>
> On Sun, Jul 14, 2019 at 6:52 AM Klaus Martinschitz <
> klausmartinschitz@gmail.com> wrote:
>
>> Hello,
>>
>>
>>
>> I want to use OpenJFX within Netbeans RCP, i.e. show 3D structures in the
>> Netbeans RCP. Here comes the simplest description
>>
>> ·         M1         App-branding-aggregator modules
>>
>> ·         M2         Netbeans JavaFX Module (call it a wrapper module)
>>
>> ·         M3         Native Java module containing my Java 3D functions
>> which have dependencies on OpenJFX libraries.
>>
>>
>>
>> I can test my M3 methods within a simple generated test method, so
>> OpenJFX works, for sure. This means also the dependencies  are correctly
>> and completely downloaded by Maven.
>>
>> Then I add the M3 to M2 (Maven scope is compile).
>>
>> Then I add my M2 to M1.
>>
>> Compile everything and try to start the application.
>>
>>
>>
>> On startup following error occurs….
>>
>>
>>
>> java.lang.RuntimeException: failed to load system cursor:
>> DnD.Cursor.CopyDrop : cannot load system cursor: CopyDrop.32x32
>>
>>                 at
>> java.desktop/java.awt.dnd.DragSource.load(DragSource.java:137)
>>
>>                 at
>> java.desktop/java.awt.dnd.DragSource.<clinit>(DragSource.java:150)
>>
>> Caused: java.lang.ExceptionInInitializerError
>>
>>                 at
>> org.netbeans.core.windows.view.ui.toolbars.DnDSupport.<clinit>(DnDSupport.java:118)
>>
>>                 at
>> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.dndSupport(ToolbarConfiguration.java:132)
>>
>>                 at
>> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.refresh(ToolbarConfiguration.java:312)
>>
>>                 at
>> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.activate(ToolbarConfiguration.java:400)
>>
>>                 at
>> org.openide.awt.ToolbarPool.activate(ToolbarPool.java:245)
>>
>>                 at
>> org.openide.awt.ToolbarPool.setConfigurationNow(ToolbarPool.java:329)
>>
>>                 at
>> org.openide.awt.ToolbarPool.setConfiguration(ToolbarPool.java:301)
>>
>>                 at
>> org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java:567)
>>
>>                 at
>> org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(DefaultView.java:542)
>>
>>                 at
>> org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:187)
>>
>>                 at
>> org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:275)
>>
>>                 at
>> org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequestor.java:
>> 264)
>>
>>
>>
>> Of course, I googled and found some answers to this topics but couldn’t
>> find a solution.
>>
>> If I look at the error message it seems as if Netbeans tries to load a
>> cursor in the org.netbeans.core.windows.view.ui.toolbars.DnDSupport
>> constructor using the method java.awt.dnd.DragSource.load from module
>> java.desktop. Now module java.desktop seems to be a Java module.
>>
>> Could it be that simple that only the cursor image is not within the
>> module java.desktop?
>>
>>
>>
>> But why is my OpenJFX code running natively without Netbeans???
>>
>>
>>
>> Thanks a lot for answer.
>>
>>
>>
>> Regards,
>>
>> Klaus
>>
>

Re: Netbeans 11 - OpenJFX 13-ea+9 - Maven - : cannot load system cursor: CopyDrop.32x32

Posted by Geertjan Wielenga <ge...@apache.org>.
A wrapper module, why is that needed in a Maven application?

Unlikely anyone can help unless you can point to code on GitHub that can be
looked at.

Gj

On Sun, Jul 14, 2019 at 6:52 AM Klaus Martinschitz <
klausmartinschitz@gmail.com> wrote:

> Hello,
>
>
>
> I want to use OpenJFX within Netbeans RCP, i.e. show 3D structures in the
> Netbeans RCP. Here comes the simplest description
>
> ·         M1         App-branding-aggregator modules
>
> ·         M2         Netbeans JavaFX Module (call it a wrapper module)
>
> ·         M3         Native Java module containing my Java 3D functions
> which have dependencies on OpenJFX libraries.
>
>
>
> I can test my M3 methods within a simple generated test method, so OpenJFX
> works, for sure. This means also the dependencies  are correctly and
> completely downloaded by Maven.
>
> Then I add the M3 to M2 (Maven scope is compile).
>
> Then I add my M2 to M1.
>
> Compile everything and try to start the application.
>
>
>
> On startup following error occurs….
>
>
>
> java.lang.RuntimeException: failed to load system cursor:
> DnD.Cursor.CopyDrop : cannot load system cursor: CopyDrop.32x32
>
>                 at
> java.desktop/java.awt.dnd.DragSource.load(DragSource.java:137)
>
>                 at
> java.desktop/java.awt.dnd.DragSource.<clinit>(DragSource.java:150)
>
> Caused: java.lang.ExceptionInInitializerError
>
>                 at
> org.netbeans.core.windows.view.ui.toolbars.DnDSupport.<clinit>(DnDSupport.java:118)
>
>                 at
> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.dndSupport(ToolbarConfiguration.java:132)
>
>                 at
> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.refresh(ToolbarConfiguration.java:312)
>
>                 at
> org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.activate(ToolbarConfiguration.java:400)
>
>                 at
> org.openide.awt.ToolbarPool.activate(ToolbarPool.java:245)
>
>                 at
> org.openide.awt.ToolbarPool.setConfigurationNow(ToolbarPool.java:329)
>
>                 at
> org.openide.awt.ToolbarPool.setConfiguration(ToolbarPool.java:301)
>
>                 at
> org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java:567)
>
>                 at
> org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(DefaultView.java:542)
>
>                 at
> org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:187)
>
>                 at
> org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:275)
>
>                 at
> org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequestor.java:
> 264)
>
>
>
> Of course, I googled and found some answers to this topics but couldn’t
> find a solution.
>
> If I look at the error message it seems as if Netbeans tries to load a
> cursor in the org.netbeans.core.windows.view.ui.toolbars.DnDSupport
> constructor using the method java.awt.dnd.DragSource.load from module
> java.desktop. Now module java.desktop seems to be a Java module.
>
> Could it be that simple that only the cursor image is not within the
> module java.desktop?
>
>
>
> But why is my OpenJFX code running natively without Netbeans???
>
>
>
> Thanks a lot for answer.
>
>
>
> Regards,
>
> Klaus
>