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.
Right click on your project and select Properties.
Java Build Path --> select the Source tab
See the below image for more details: