Intellij idea Intellij方法参数openjdk

Intellij idea Intellij方法参数openjdk,intellij-idea,openjdk,Intellij Idea,Openjdk,我正在将LinuxMint与IntelliJ和OpenJDK8一起使用。在Windows上,我记得IntelliJ显示了API文档中的参数名称 现在我只得到一些短名称,如s,l或I,等等 例如: Thread.sleep:提示应该是 sleep(long millis); and sleep(long millis, int nanos); 但他们现在是 sleep(long l); and sleep(long l, int i); 就像你在照片上看到的那样 在项目结构中,文档

我正在将LinuxMint与IntelliJ和OpenJDK8一起使用。在Windows上,我记得IntelliJ显示了API文档中的参数名称

现在我只得到一些短名称,如
s
l
I
,等等

例如:
Thread.sleep
:提示应该是

sleep(long millis); and  
sleep(long millis, int nanos);
但他们现在是

sleep(long l); and  
sleep(long l, int i);  
就像你在照片上看到的那样

在项目结构中,文档路径已设置为

这是OpenJDK的问题吗

我解决了这个问题: 首先,我安装了openjdk-8-source。似乎存档只是指向不存在的目录的链接。现在它指向../openjdk-8/src.zip。
在此之后,在IntelliJ-Platform Settings-SDK的项目结构中,Sourcepath选项卡为空。因此,我向src.zip目录添加了路径。

您确定安装了Java源代码吗?这可能是LinuxMint上的一个额外包。编辑:检查文件系统中是否有可用的
/usr/lib/jvm/java-8-openjdk-amd64/src.zip
。是的,此存档文件已在该文件夹中。。。