Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to display project structure in java

I have a error in a project I am currently working on. I wanted to post the problem in Stack overflow and want to display project structure like this :

src
├── main
│   └── java
│       └── Main.java
├── manifest.txt
├── run.sh
└── test
    └── java
        └── MainTest.java

I have copied this structure from another question. I am currently using eclipse and maven as well. If i amnot clear about my question.. here it is again. how to get project structure of a java project I am working on-like done above- ?? )Sorry for the bad english. not my first language)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The simplest way I know to resolve this is using OS commands. In that case, the question was already answwered in other posts like this

In Windows you can run the following commands in a cmd terminal:

  • cd the\root\folder\of\your\project
  • tree /f or tree /f > tree.txt

In Linux, the tree command should be available in most distributions.
You could use it by typing in a command terminal:

  • tree /the/root/folder/of/your/project

If you are looking for a specific feature in Eclipse, then I can’t help you. I don’t know if such a feature exists.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading