Programming Tips - Eclipse: Create a linked source folder

Date: 2018jul31 Updated: 2019oct9 Environment: Eclipse Keywords: src Q. Eclipse: Create a linked source folder A. With the GUI... Right click the project then Build Path > Configure Build Path > Source > Link The "remote" folder needs to have "src" folder which you include And the "locate" folder does not have "src" Without the GUI... Close your project. Add it to your .classpath file (in the root folder of your project)
<?xml version="1.0" encoding="UTF-8"?> <classpath> ... <classpathentry kind="src" path="mylinkedfolder"/> ... </classpath>
Add it to your .project file (in the root folder of your project)
<linkedResources> <link> <name>mylinkedfolder</name> <type>2</type> <location>C:/the/location/of/mklinkedfolder</location> </link> </linkedResources>
Open your project and refresh (F5) your folders.