Bring a Linux window and type
Ø java –version
Note: This is also applicable to FreeBSD and Solaris environment as well