Most Popular in Unix
-
Can we delete file using PSCP?
-
sudo directory
-
In vi, any way to prevent :edit from repositioning the screen?
-
Replace a string after n semicolon every line
-
Print #of lines after serach string in a big file
-
virtualize physical SCO 5.0.6
-
Date time calculation
-
Solaris x86: Bad PBR sig
-
vBulletin Exclude Forums from "Get New Posts" Feature
-
Code creates day 32 instead of 1st day of next month.
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
- Issues With an Orphaned .attribute^ File
- ftpconfig - Setup Anonymous FTP
- No Space Left on Device!
- Troubleshooting Domain Issues with My SysAd Blog - Again
- 142857 is an Interesting Number
- Pipe Symbols are Missing from Some Posts
- Field 'user_website' doesn't have a default value
- Determine Java Runtime Environment Version
- Access a Tape Drive Device From a non-global Zone
- Disable On-screen Keyboard on Startup
Most Popular Stories
Office for Mac 2011 Makes Video Teaser Appearance [Microsoft]
Microsoft previews Office for Mac 2011
Microsoft officially unveils key Office 2011 for Mac features
Microsoft Offers Behind-the-Scenes Look at Office for Mac 2011 Features
Apple Rolling Out iAd Spots for App Developers
Best Buy Offering Free invisibleSHIELD to iPhone 4 Owners?
Where's Your Magic Now, Magic Trackpad? [Apple]
Apple Censoring Their Book Store Bestseller List
Android Plays King Kong Against Steve Jobs' Helicopters [Android]
Extension performance vastly improved in Safari 5.0.1