[英]/usr/bin/java: is a directory
I downloaded the jdk-7u67-linux-x64.tar.gz file from the Oracle website, unzipped it and also created a symbolic link just like one of the tutorial said. 我从Oracle网站下载了jdk-7u67-linux-x64.tar.gz文件,解压缩它并创建了一个符号链接,就像教程之一所说的那样。 (I'm very new to these things, so I have no idea what a symbolic link means so please explain it.) Right now, whenever I type Java, it says /usr/bin/java is a directory.
(我对这些东西很新,所以我不知道符号链接是什么意思所以请解释一下。)现在,每当我键入Java时,它都说/ usr / bin / java是一个目录。 I can't find any answer to this problem.
我找不到这个问题的任何答案。 Thanks in advance.
提前致谢。
You probably created a symbolic link to the directory instead of to the actual java
binary. 您可能创建了一个指向目录的符号链接,而不是实际的
java
二进制文件。 You need to give ln -sh $extracted_path/bin/java
where $extracted_path needs to be replaced with the real base direcory where you extracted the package. 您需要提供
ln -sh $extracted_path/bin/java
,其中$ extracted_path需要替换为您解压缩包的真实基本目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.