Visual Studio Code, Java Extension, howto add jar to classpath

后端 未结 8 870
攒了一身酷
攒了一身酷 2020-11-29 03:20

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

8条回答
  •  迷失自我
    2020-11-29 03:53

    It's so easy, anyway:

    1. Create project with java ctrl+shift+p
    2. Add the jar file to your .classpath
    3. Add on the top of your project package [app]; the name of your package
    4. We are done, don't forget to refresh it.

提交回复
热议问题