Home > Software design >  How to display project structure in java
How to display project structure in java

Time:08-15

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)

CodePudding user response:

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.

  • Related