简体   繁体   中英

Problem importing a library in java (VSCode)

Basically I have to do a program that focuse on reading and writing on a csv on java, since I can use external libraries I thought of adding OpenCSV but even after adding it to "Referenced Libraries" on vscode when I try to compile it it says that the package doesnt exist and I can find information of how to do it properly

在此处输入图像描述

在此处输入图像描述

use javac -cp <path_to_jar>/<jarname> App.java to compile your java file. This will add the library to the compiler.

if you use javac from command line, the settings of VSCode will be ignored.

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