41
8
I know about java -version. I don't care what version I'm currently running. I care what other versions are installed on my linux box. If it's another java -* command I didn't see it in the java -help.
I've tried googling it but the answers are either for Windows or they say "use java -version." I know I've done this before.
3Any reason not to use
update-alternatives --list java
just to list them? – Xiao – 2015-10-17T01:20:59.0674@Xiao: unfortunately, not all versions of update-alternatives have
--list
option. e.g. Centos 6.7 doesn't. – mvp – 2015-10-19T17:45:20.0971In RHEL 7, --list exists, but doesn't take any other parameters, so you have to
| grep java
– Dmitri – 2016-08-17T18:33:35.037