How can I get Eclipse to store .class files in a folder outside the Project folder where I store the .java source files?

Per This question (see comments near the bottom), I was wondering if anyone knows any way to get Eclipse to store .class files in a folder of my choice outside the project folder where the .java source files are stored. I did not see the opportunity to do this in the wizard for creating a new project, but my knowledge of Eclipse is very limited. Thanks!

+4
source share
2 answers

If the Dropbox folder was outside your Eclipse project, you can link the source folder in Eclipse so that the class files will be saved inside Eclipse, but the source in your Dropbox folder will get the changes as well. Right-click on the project, select "Build Path", then "Source of Links ..."

This assumes that you do not care about any other files associated with the Eclipse project (.classpath, .project, etc.).

+4
source

Right click on the project; select "Java Build Path"; select the "Source" tab. At the bottom is a field where you can specify. By default, I thought it was $ {project} / bin

Of course, now I see that you told OUTSIDE the path to the project.

+4
source

Source: https://habr.com/ru/post/1303046/


All Articles