To build the project, you can use the following command in the terminal:
javac -d bin src/*.java
After building the project, you can run the main class using the following command:
java -cp bin LargestOfThreeNumbers
The workspace contains two folders by default, where:
src
: the folder to maintain sourceslib
: the folder to maintain dependencies
Meanwhile, the compiled output files will be generated in the bin
folder by default.
If you want to customize the folder structure, open
.vscode/settings.json
and update the related settings there.
The JAVA PROJECTS
view allows you to manage your dependencies. More details can be found here.