I installed a Linux virtual machine, and downloaded JDK on it. Then I did:
$ export PATH=~/jdk1.8.0_191/bin:$PATH
Then
$ which java
And it said that I have no java
in PATH
. I checked the bin
file in my JDK and there is a file named java
in there. What do I do? My operating system is CentOS 6 64-bit, and I downloaded the JDK for Linux x64.
I also tried the export
without the :$PATH
, and then which java
, and it still says there is no java
in there.