8

I have been draging and dropping from Windows Explorer to Eclipse since I've started using it, and now find myself unable to do so. When I drag a .java file over my package, the mouse cursor stays a circle with a diagonal bar through it and dropping does nothing. I have tried to change my workspace, create a fresh new workspace, deleted eclipse and redownloaded it. It still doesn't work. Making Eclipse run as admin doesn't solve the issue either.

6 Answers 6

7

There are at least two workarounds:

  • Use the menu File -> Import -> General -> File System
  • or use CtrlC in Windows Explorer, CtrlV in the Package Explorer of Eclipse.
7

I had this issue when Eclipse was running as Administrator. Setting it back just worked.

2
  • Similar issue I faced and tried with lot of drag and drop API, but DnD not worked for me, remove Eclipse Administrator permission at start, Simply worked for me...Thanks you saved a week for me... Mar 15, 2016 at 2:47
  • drag & drop files into eclipse stopped working yesterday. Unchecked 'Run as Administrator' from the shortcut and now its working again. Thanks!
    – pfuri
    Sep 14, 2016 at 19:47
5

I figured out it was due to viewing the project in Project Explorer instead of Package Explorer.

Right click on a project > Show in > Package Explorer

You'll be able to drag-drop again at this point.

0

I faced similar problem when trying to drag-drop image file directly from explored zip. After I extracted the zip, drag-drop worked as expected.

0

For me it was the missing marketplace client.
It is noticeable when help -> Eclipse Marketplace is missing.
I installed it with help -> Install new Software -> Update Site for 2018-09 -> Eclipse Marketplace

0

Extract all files from zip folder. It worked for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.