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

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.