DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far...

Welcome! This is a Q&A website for computer programmers and users alike, focused on helping fellow programmers and users. Read more

What are you stuck on? Ask a question and hopefully somebody will be able to help you out!
+1 vote

How do I know the version of Java that I'm using in Linux? I've tried all of these java --version, java -v, java -V but the error is always the same Unrecognized option: --version.

retagged by

I am using openJDK 11.0.11 and both java --version and java -version work



1 Answer

+2 votes
Best answer

Answering my own question...

For openjdk-8 only -version works, but not --version.

Contributions licensed under CC0