How to open java source tree in Netbeans?

There is a directory tree with java sources here and there, for example src \ com \ company \ foo \ etc. I am trying to build and debug this luxury with Netbeans. I tried to create a new project and replace the template files with real ones, but I cannot achieve the same directory structure. There is an option to import an Eclipse project, but it is not an eclipse project. How can i do this?

+4
source share
2 answers

You can create a new project from existing source code. Choose “File” → “New Project” → “Categories:” → “Java” → “Java Project with Existing Sources” , then find the existing src directory as well as the test directory (if one exists).

+3
source

Create a new empty java project and copy the contents of your src directory to the / src directory in the project directory. If the folder structure matches the packages (this should be so), then everything will be fine.

0
source

Source: https://habr.com/ru/post/1335426/


All Articles