Issue
Currently, my "Package Explorer" in Eclipse shows as follows:
I want to move the "src" folder to the top of "JRE System Library".
How should I do to achieve it?
Solution
The order of the displayed elements is given by the order of the elements in the .classpath
file.
To move the source folder src
to the top, open the .classpath
file (which is only visible in the Navigator view) and move the following line up so that it is the first child element of the <classpath>
element:
<classpathentry kind="src" path="src"/>
Answered By - howlger
Answer Checked By - Candace Johnson (JavaFixing Volunteer)