Hello,
I have a "Oversized" server for my DNS only installation so I use it also for other purposes. I wanted to install Elasticsearch which needs Java to run.
I installed Java using:
It installs without problems but if I type:
I get this output:
I also tried to select Java version with:
and I get this output:
I have a "Oversized" server for my DNS only installation so I use it also for other purposes. I wanted to install Elasticsearch which needs Java to run.
I installed Java using:
yum install java-1.8.0-openjdk-devel
It installs without problems but if I type:
java -version
I get this output:
-bash: java: command not found
I also tried to select Java version with:
update-alternatives --config java
and I get this output:
[[email protected] ~]# update-alternatives --config java
There is 1 program that provides 'java'.
Selection Command
-----------------------------------------------
*+ 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.
Enter to keep the current selection[+], or type selection number: 1
failed to link /usr/bin/java -> /etc/alternatives/java: /usr/bin/java exists and it is not a symlink