简体   繁体   English

无法在 Visual Studio Code Java 扩展包中添加 jar 作为库

[英]Unable to add a jar as a library in Visual Studio Code Java Extension pack

Im trying to add json.jar to the current workspace, When i try to add, it shows me my file explorer (nautilus in my case) but im unable to click on anything like it was "disabled"我试图将 json.jar 添加到当前工作区,当我尝试添加时,它向我显示了我的文件资源管理器(在我的情况下为鹦鹉螺),但我无法点击任何类似“已禁用”的内容

as you can see, i can't click on it, i also tried to do it from settings.json:如您所见,我无法单击它,我也尝试从 settings.json 中进行操作:

"java.project.referencedLibraries": [
        "/home/user1/tests/json.jar"
]

and reloading vscode and the result still the same, libraries list still empty, i tried to compile a.java file with json.jar to check if the problem is from the jar file itself but it worked withtout problems. and reloading vscode and the result still the same, libraries list still empty, i tried to compile a.java file with json.jar to check if the problem is from the jar file itself but it worked withtout problems.

javac -cp json.jar test.java

Thanks.谢谢。

it seems like a issue, as this page mentioned: https://github.com/microsoft/vscode-java-dependency/issues/238 .正如本页所述,这似乎是一个问题: https://github.com/microsoft/vscode-java-dependency/issues/238

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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