The original project is placed in the bin directory by default, and there are two ways to change the placement path of the compiled class file:
1. Set the output path for the project settings .class
右键项目 > Properties > Java Build Path > Source > Default Output Folder
The new directory is used to store .class files, and the target/classes directory under the project
Second, set the global .class file output path
Window > Preferences > Java > Build Path > Source and Output Folder
At this point, when you create a new project, the .class file will be automatically placed in the set target/classes directory
Eclipse does not compile (neither clean nor check Build Automatically can be automatically compiled), generally because there is a jar package that cannot be found in the Build path of your project, it may be because a jar package was introduced before, and now delete it If the path is dropped or moved, there will be a problem of not compiling.
Solution: Open the Build Path of the project, delete the jia package in Libraries and reload it, check Build Automatically, and try it.