Most Popular in Unix
-
ILOM Sunservice login incorrect
-
Net Calculator
-
zlogin: makeutx failed
-
Auto putty login and an ebook required
-
Jumpstart Error: Unsupported version (3.0).
-
SAN/Solaris: luxadm shows NOT CONNECTED
-
what is the difference between /etc/mnttab and /etc/vfstab
-
Installing bash on AIX 6.1
-
involuntary context switching
-
sppp0 interface in solaris 10
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
- How to Exclude a Directory for TAR
- 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
Most Popular Stories
A fix for those "Pairing Record Missing" errors
ILOM Sunservice login incorrect
Net Calculator
zlogin: makeutx failed
Auto putty login and an ebook required
Innovation isn't dead, it just moved to the cloud
Diablo 3 Slow on Mac? Here is a Solution
Planning Board Rendering Unveils New Glass-Enclosed Apple Store for Stanford
7 Online Resources To Trace The History Of Your House
Daily iPhone App: Elenints matches Triple Town's planning with a few new tricks