On UNIX here are a couple ways to create such a file:
ls *.java > my_project.lst
find . -name “*.java ” -print > my_project.lst
In a Windows command shell:
dir /b *.java > my_project.lst
dir /b /s *.java > my_project.lst