How do I find out my JDK version under Ubuntu Linux operating systems? How do I find out JDK version under any Linux distribution?
Open a command-line terminal (select Applications > Accessories > Terminal), and then type the following command to find out JDK version:
java -version
Sample outputs:
java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.2) (6b20-1.9.2-0ubuntu1~10.04.1) OpenJDK Server VM (build 19.0-b09, mixed mode)
To list all installed jdk version under Ubuntu / Debian Linux, enter:
dpkg --list | grep -i jdk
Sample outputs:
ii default-jdk 1.6-34 Standard Java or Java compatible Development
ii icedtea-6-jre-cacao 6b20-1.9.2-0ubuntu1~10.04.1 Alternative JVM for OpenJDK, using Cacao
ii openjdk-6-jdk 6b20-1.9.2-0ubuntu1~10.04.1 OpenJDK Development Kit (JDK)
ii openjdk-6-jre 6b20-1.9.2-0ubuntu1~10.04.1 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-6-jre-headless 6b20-1.9.2-0ubuntu1~10.04.1 OpenJDK Java runtime, using Hotspot JIT (hea
ii openjdk-6-jre-lib 6b20-1.9.2-0ubuntu1~10.04.1 OpenJDK Java runtime (architecture independe
A Note About RPM Based Linux Distributions
If you are using RPM based distro, try:
$ java -version
$ javac -version
$ rpm -qa | egrep -i "(jdk|jre)"
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop










![Linux: Find Out My Group Name [ Group Memberships ]](http://s13.cyberciti.org/images/shared/rp/3/25.jpg)



{ 1 comment… read it below or add one }
Hi,
I updated my system and now I have problems with the new jre, you know how to get back to and old version with apt.
thanks.