In Eclipse, I add a jar library using
project -> build path ->configure build path
What is the equivalent in VisualStudioCode? I had a look into launch.json
You must have the Java Dependency Viewer extension installed which helps import the jar files and add them to the project's classpath OR add the libraries to the ".classpath" file manually by using tags within tags for each jar file.
First what you want to do is know how to create a proper Java "project" in VS Code.
To do that:
Java: Create New ProjectThen : Expand the Java Dependencies section in your Explorer Panel then Expand your "project name".
That's it!!!!
By the way you can see all of this in detail at https://code.visualstudio.com/docs/java/java-project#_working-with-jar-files , it has a clear visual representation of everything related.
Happy Coding!!!