Skip to content

Instantly share code, notes, and snippets.

@gorlok
Created January 28, 2020 20:32
Show Gist options
  • Save gorlok/0b736b2cab616233e797a770ec6f0d93 to your computer and use it in GitHub Desktop.
Save gorlok/0b736b2cab616233e797a770ec6f0d93 to your computer and use it in GitHub Desktop.
check java version on Linux
#!/bin/bash
echo "Current Java version:"
java --version
javac --version
jar --version
jshell --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment