package self creation of folders

Hi,

if i had a code like the following, does java automically help me to create the folders [me\mouth\teeth] ?

//--code starts here

package me.mouth.teeth;

public class WisdomTooth{
        public WisdomTooth(){
                System.out.println("This is the tooth that  might cause you pain if its a sleeping Wisdom Tooth");
        }
}

//--code ends here

so from this code, does it means that the WinsdomTooth class belongs to the teeth package?


Thanks and Best Regards
eturfclubAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

objectsCommented:

the compiler can create the directory if needed to put the class in.
its good practice though to create the directory structure and store the source file in the teeth directory.
0
eturfclubAuthor Commented:
yeah... thats exactly wad i did... however, my .java file is stored in the folders [me\mouth\teeth] . Should it be in the root instead? so from the above code, does it means that the WinsdomTooth class belongs to the teeth package?
0
objectsCommented:
no, where you have it sounds fine
yes it is in the teeth package (technically me.mouth.teeth package)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

eturfclubAuthor Commented:
oh... but i had it in the folders [me\mouth\teeth]. But it created another set of [me\mouth\teeth] folders in the teeth directory. Any idea how to disable this?
0
objectsCommented:
how did u compile it?
0
eturfclubAuthor Commented:
i compiled it using the IDE "JCreator LE"
0
objectsCommented:
check that your classpath contains the parent directory of "me" directory.
0
objectsCommented:
that directory shouls probably be the location of your project (I don't actually use JCreator)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.