When you have a Java project in Eclipse, how do you change the location where the class files are placed? The bin directory is the default location.
Open eclipse --> Go to File --> switch workspace --> other --> choose your workspace by clicking the Browse button.
In the Project tool window Alt+1 , right-click the root directory of your project and select Refactor | Move directory ( F6 ). In the dialog that opens, specify a new location for the project and click Refactor.
The bin folder can be ignored. This is nothing more than the folder in which Eclipse stores the . class files generated by compiling your code (which it does automatically; see compiling).
You can change the folder name from bin to something else.
Right click on your project and select Properties. And then click on Java Build Path. On the right side you can see the tabs Source, Projects, Libraries,...
Click on Source. Check the Default output folder:. There you can browse and select the different folder you want.
But you cannot change the directory. For example if your project is in D: drive you cannot keep the output folder in C: drive.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With