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

后端 未结 5 1671
庸人自扰
庸人自扰 2020-12-03 16:35

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.

5条回答
  •  不思量自难忘°
    2020-12-03 17:29

    I would like to describe an approach below.

    First, create a new empty project locally in eclipse work space for storing generated output files say output_bin.

    As mentioned in above steps, now from Default Output Folder we need a new Variable to link to our project output folder.

    1. Default Output Folder -> Browse -> Create New Folder...
    2. -> Advance -> check "Link to folder in the file system" ->
    3. Variables -> New.. -> Name = PROJECT_OUT, Location = "CHOOSE_PATH_TO\output_bin\bin\Project1bin" -> Ok

    Note: Project1bin is a new directory which stores the bin folder. output_bin is an empty project and you can have multiple bin folder for various projects.

提交回复
热议问题