![](/img/trans.png)
[英]Visual Studio Code, Java Extension, how to add a JAR to classpath?
[英]Unable to add a jar as a library in Visual Studio Code Java Extension pack
我试图将 json.jar 添加到当前工作区,当我尝试添加时,它向我显示了我的文件资源管理器(在我的情况下为鹦鹉螺),但我无法点击任何类似“已禁用”的内容
如您所见,我无法单击它,我也尝试从 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.
javac -cp json.jar test.java
谢谢。
正如本页所述,这似乎是一个问题: https://github.com/microsoft/vscode-java-dependency/issues/238 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.