Most Popular in Unix
-
Issues with automating SFTP command
-
vio server ethernet to vio client ethernet(concepts confusing)
-
"pconsole" and "esaadmin" on AIX version 6
-
EvE Online IGB - PHPBB Interface: PHPBB3 Interface Beta 1
-
Introduction to PowerHA (1 Sep 2010)
-
Solaris9 - qlogic HBAs - luxadm reports "Found path to 0 HBA ports"
-
Creating a Flash Archive Recovery Image
-
Tar too large to archive. Use E function modifier.
-
Problem on throwing sftp in nohup
-
problem with /var/mail directory
Determine Java Runtime Environment Version
Article posted from
My SysAd Blog (http://www.mysysad.com/2009/04/determine-java-runtime-environment.html)
A few days ago I was asked for a quick and easy way to determine what java runtime environment version was installed via the Unix command line. The requester was trying to determine possible compatibility issues for some recently purchased applications.
Bear in mind that you may have multiple JRE environments installed on your box so consider the PATH value -- meaning you might have to specify an absolute path. e.g. /usr/some_java_version/bin/java
Here is the Unix one-liner syntax using default path
% java -version
java version "1.x.x_xx)
By the way, it is the same syntax for Windows.
C:\Users\mysysad> java -version
java version "1.x.0_xx"
Java(TM) SE Runtime Environment (build 1.x.0_xx-xxx)
Java HotSpot(TM) Client VM (build xx.3-bxx, mixed mode, sharing)
Here is the Unix one-liner syntax using default path
% java -version
java version "1.x.x_xx)
...
By the way, it is the same syntax for Windows.
C:\Users\mysysad> java -version
java version "1.x.0_xx"
Java(TM) SE Runtime Environment (build 1.x.0_xx-xxx)
Java HotSpot(TM) Client VM (build xx.3-bxx, mixed mode, sharing)
More Stories in My SysAd Blog
- Restore MySQL Database via Command Line
- Sun StorageTek 6140 Cache
- HTML Symbol Entities issue on Blogger
- Log an FTP Session with a Filter
- The Khan Academy is Teaching the Online World
- Use Redirect Symbol to Zero File
- Run the Windows Explorer GUI
- Retrieve Information on LDAP User
- $HOME/.TTauthority not writable, auth entry not added
- Microsoft Security Advisory --- F1 Key on Web
Most Popular Stories
A fix for those "Pairing Record Missing" errors
Localized Flipboard Content guides available for UK, Ireland, Australia and Canada
Motorola wants 2.25 percent of Apple sales to license patents
Apple FileVault 2 encryption cracked, but don't panic
Apple sends takedown notice about customer support email
Motorola seeking 2.25% of Apple's sales for standard-essential patent license
Daily iPhone App: NFL Flick Quarterback
Linux Mint 11 LXDE review
Former Apple employee recounts how Jobs motivated iPhone team
Uploaded iTunes Match Songs Inaccessible for Some Users