Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set the return of "java -version" in a variable

Status
Not open for further replies.

6151

Programmer
Dec 30, 2003
7
CA
Hi there,
I want to setup an env. variable of JDK version by running a batch file.

In UNIX this can be done by using JDK_VER=`java -version` in shell scripts. How to do this in windows. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top