I have a Java installation and I have only access via bash. How can I check the Java version from command line.

Recommended Answers

How can I check the Java version from command line.

java -version

Jump to Post

All 3 Replies

Not familiar with java but your thread title says python so at the command line just type python and the version will be displayed before the prompt. I'm curious as to why you included bash, linux, and mint as tags but not python or java.

How can I check the Java version from command line.

java -version

also a possible answer:
python --version

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.