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

StackOverflow https://stackoverflow.com/questions/2374751

Question

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 choosing outside the project folder where the .java source files are stored. I have not seen an option to do this in the new project creation wizard, but my knowledge of Eclipse is quite limited. Thanks!

Was it helpful?

Solution

If your Dropbox folder was outside of your Eclipse project you could link the source folder into Eclipse so that the class files would be maintained inside of Eclipse, but the source in your Dropbox folder would get your changes as well. Right click on the project select "Build Path", then "Link Source..."

This assumes you don't care about any of the other files associated with an Eclipse project (.classpath, .project, etc...).

OTHER TIPS

Right click on the project; choose "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 said OUTSIDE the project path.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top