使用 JDTLSJava 语言服务器每晚构建 Neovim 无法识别 ${CLASSPATH} 中的 JAR 文件

问题描述

我在 ${CLASSPATH} 环境变量中添加了 junit jar 文件,但是当我将 lsp 用于 neovim 时,它无法识别 JAR 文件中的函数和导入。

import static org.junit.Assert.assertEquals;     ■ The import org.junit cannot be resolved
  1 import static org.junit.Assert.assertTrue;     ■ The import org.junit cannot be resolved
  2 import static org.junit.Assert.fail;     ■ The import org.junit cannot be resolved
  3
  4 import java.util.Comparator;
  5 import java.util.Arrays;
  6 import java.util.List;
  7 import java.util.ArrayList;
  8
  9 import org.junit.Test;     ■ The import org.junit cannot be resolved
 10 import org.junit.Before;     ■ The import org.junit cannot be resolved

有谁知道将 ${CLASSPATH} 添加到 jdtls 识别的导入和“东西”的方法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)