Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Cannot move com folder to src folder

When I drag the com folder to the src folder in Intellij, an error message appears, saying "Cannot move .... to ...."

Why is this so and how can I go about importing the folder?

1 Answer

I can't see your directory structure so I'm just trying a guess here. Is it possible you have a file from somewhere in or below the com directory open in your editor when you tried to move com? If so, you won't be able to move the com directory. Also, you may want to see if there is something like File->Import in the IDE menu.