简体   繁体   中英

How to import external jar into my project with vscode?

I am trying to add external jar into my project with vscode.

To manage the classpath with Eclipse, I right-click on my project and select Properties, Java Build Path | Libraries.

How to do this with vscode?

ms docs gives this tutorial.

在此处输入图片说明

I cannot find LIBPROJ in my vscode. Does that need some extension, if yes, what it is?

PS: I've already installed Java Extension Pack, Spring Boot Tools , and Spring Boot Dashboard .

With installing the "Java Extension Pack" also was installed the "Java Dependency Viewer".

So now you can add libraries by editing the .classpath file with custom entries of JARs that may be placed anywhere, for example a lib folder. The extensions will automatically load those libraries in the classpath and you should be able to run your code.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM