By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,027 Members | 1,293 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,027 IT Pros & Developers. It's quick & easy.

Check Java version from Command Line

P: 15
I have a Java installation and I have only access via bash. How can I check the Java version from command line.
May 28 '20 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 260
java -version

Simple searches could answer these types of questions.
May 28 '20 #2

P: 2
You can use the -version parameter for the java command like below.
java -version
Jun 1 '20 #3

Post your reply

Sign in to post your reply or Sign up for a free account.