Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse - Resource already exists
Eclipse - Resource already exists [message #1816354] Mon, 28 October 2019 10:30 Go to next message
Mihnea-Costache Marin is currently offline Mihnea-Costache MarinFriend
Messages: 68
Registered: September 2019
Member
Hello,

I have created a wizard that lets you select some files from the file system and then create a project with them. Everything works as expected if I select as the location of the project any other place except the folder from where I've selected the files. If I do that, I will get an error: "Resource already exists". Is there a way to select as the project location the same folder from where I've selected the files?

Thank you!
Re: Eclipse - Resource already exists [message #1816400 is a reply to message #1816354] Tue, 29 October 2019 05:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
This isn't really a JDT question and without specific details of what's actually in your file system no one can answer this. It seems clear you're code is attempting to create a resource (project?) where one already exists and that this doesn't work but what specifically your doing is kind of guess work.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse - Resource already exists [message #1816413 is a reply to message #1816400] Tue, 29 October 2019 08:08 Go to previous message
Mihnea-Costache Marin is currently offline Mihnea-Costache MarinFriend
Messages: 68
Registered: September 2019
Member
Hi.

I will try to explain it better. The user wants to create a project(C Type Project) with some files. He chooses the folder from where to get the files and also, selects the folder where the project is going to be created. If the destination folder is different from the folder from where he selected the files, everything is good. If he chooses that he wants the project to be created in the same folder, the project is created(the files are added to the project) but it gives me an error that every resource(every selected file) already exists(true, since the project location is the same as the location from where he took the files from)

Thank you!
Previous Topic:Eclipse compiler buggy? Brings error again and again
Next Topic:Project seemingly lost
Goto Forum:
  


Current Time: Tue Nov 05 15:38:22 GMT 2024

Powered by FUDForum. Page generated in 0.06236 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top