tags:

views:

20

answers:

2

Hi,

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.

+1  A: 

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.

Multiplexer
I believe you can have the source output on a separate drive by creating a linked resource folder in the .project file. e.g.</linkedResources> <link> <name>build_dir</name> <type>2</type> <location>L:/</location> </link></linkedResources>
eSniff
@esniff:Cool thats great.
Multiplexer
+1  A: 

Right-click on our project --> select properties --> select Java Build Path --> select the Source tab. At the bottom of the tab you should see a field named (Default Output Folder:).

eSniff