3

I am new to Java and am a little bit confused about how NetBeans manages directory structure. I understand there are structure with main project name directory, then src, build, dist, etc.

But what I don't understand is why NetBeans creates two-level directory in my case below:

enter image description here

What's the difference between directories project and myapp?

Folder project contains myapp only and myapp contains src, dist, build, etc. Another picture:

enter image description here

What is directories project and myapp for? What's the difference between them?

0

2 Answers 2

2

The project location is a location in which you can store lots of different projects. Each will have its own project folder.

Sign up to request clarification or add additional context in comments.

2 Comments

"project location" ... store "lots of diff. projects" - so 1 project can store many projects? am I right?
No,a single project location is for particularly that single project. Check my answer.
1

The project directory is just a place where you've custom-specified the netbeans projects storage.

But, the sub-directory myapp is simply one of the project name of your NetBeans projects which is to be stored inside the parent NetBeans projects directory (D:\dev\java\project) here.

There can be similar several projects which will by default get stored under this (D:\dev\java\project) --- NetBeans Projects directory like some :-

(D:\dev\java\project\myapp2)

(D:\dev\java\project\myapp3)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.