Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/bin/java: is a directory

Tags:

java

linux

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. (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. I can't find any answer to this problem. Thanks in advance.

like image 902
user1932868 Avatar asked May 17 '26 07:05

user1932868


1 Answers

You probably created a symbolic link to the directory instead of to the actual java binary. 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.

like image 168
Siva Kumar Avatar answered May 19 '26 21:05

Siva Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!