Drag and Drop disabled after using Install4J and starting the .exe file

依然范特西╮ 提交于 2019-12-24 10:08:41

问题


Everything works great when starting the JavaFX application from a .jar file . I am using Install4J with Open-Source licenses to make installers for Windows .

The exact description of the problem is this :

Inside the application drag and drop works . Also when i drag from inside the application to the Windows Explorer it also works . Just for some reason dragging from Windows desktop or explorer doesn't work .....

To be specific below i have photos which will help you understand exactly the problem.

Windows 10 , Java 9.0.4 , Install4J 7.0.5

The repository of the application is on Github in this link ( XR3Player )


Tried everything from disabling the splash screen to checking the permissions but it seems like the Windows 10 maybe? , system disables the application from having access to Drag and Drop , i don't know . So

1) Disabled the Splash Screen

2) Disabled ( Using SWT or QT)

3) Checking Unix Permission ( do they have to do with something ?...)

4) Starting the application from .exe file Drag and Drop disabled

5) Starting the application from .jar file the Drag and Drop works pretty well

6) Inside the application drag and drop works . Also when i drag from inside the application to the Windows Explorer it also works . Just for some reason dragging from Windows desktop or explorer doesn't work .....

7) Tried also as a console application to see if any errors are reported but still nothing.


回答1:


Using the "Require administrator" option in the "Windows manifest options" of the launcher wizard causes this issue, because drag and drop between the non-elevated desktop and your elevated application are prevented by Windows.



来源:https://stackoverflow.com/questions/50437739/drag-and-drop-disabled-after-using-install4j-and-starting-the-exe-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!