Issue
When I compile and run my project, Visual Studio Code automatically generates a .class file for each .java file and puts them in the src folder, but they are already stored in the bin folder. Why are they duplicated?
Solution
If you compile .java
file manually by command javac name.java
, the .class file will be generated in folder src
. By default, it's stored in folder bin
with default setting
"java.project.outputPath": "bin"
Turn to .vscode/settings.json, check if you've set src
as the value of java.project.outputPath
. Change it back to bin
then cleaning java language server workspace
from Command Palette.
Answered By - Molly Wang-MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.