Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change a Java project's bin folder in Eclipse?

Tags:

eclipse

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.

like image 844
Chris J Avatar asked Jul 07 '10 03:07

Chris J


People also ask

How do I change the location of a Java project in Eclipse?

Open eclipse --> Go to File --> switch workspace --> other --> choose your workspace by clicking the Browse button.

How do I move a Java project to another folder?

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.

What is bin folder in Eclipse project?

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).


1 Answers

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.

like image 101
Puru Avatar answered Sep 29 '22 16:09

Puru