Lokdal
Lokdal

Reputation: 183

Unable to drag and drop to Eclipse

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.

Upvotes: 8

Views: 14876

Answers (6)

khan
khan

Reputation: 1

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

Upvotes: 0

Philipp Endrulat
Philipp Endrulat

Reputation: 216

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

Upvotes: 0

Zaiat
Zaiat

Reputation: 68

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.

Upvotes: 5

helloworld
helloworld

Reputation: 2311

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.

Upvotes: 0

NathofGod
NathofGod

Reputation: 479

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

Upvotes: 7

Bananeweizen
Bananeweizen

Reputation: 22080

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.

Upvotes: 7

Related Questions