Cannot Create Directory

A newb question:

I've been trying to make a subdirectory in the project panel - I tried right clicking and AltInsert, but there is no way to create a new directory. I tried checking the help file but it says AltInsert, right clicking or Edit>New>Directory.. but I can't seem to do it.



Attachment(s):
Clipboard02.jpg
5 comments
Comment actions Permalink


"aldous bernardo" <no_mail@jetbrains.com> wrote in message
news:23586922.1073022136160.JavaMail.itn@is.intellij.net...

A newb question:

>

I've been trying to make a subdirectory in the project panel - I tried

right clicking and Alt+Insert, but there is no way to create a new
directory. I tried checking the help file but it says Alt+Insert, right
clicking or Edit>New>Directory.. but I can't seem to do it.

You are probably trying to create a directory where it can't be created,
e.g. inside jar file. If this is not the case, please provide some more
details.

Friendly,
Eugene.


0
Comment actions Permalink

Thanks Eugene!

I'm trying to create a subdirectory inside my Project directory. I want to create a subdirectory where I can place like XML or other resource files. Just a plain project :)

0
Comment actions Permalink

This is normal behavior.

The directory you selected is a source package, therefore you select 'new package'. It will create a directory for the package.

0
Comment actions Permalink

Does it mean that a package is also the same as a directory? I tried using add new package- But I found that classes store inside the package have a package declaration.

0
Comment actions Permalink

Several directories can map to the same package, but a directory can only have classes from one package.

There was quite a bit of discussion about this on the EAP forum, as this limitation was not there in IDEA 3.

0

Please sign in to leave a comment.