Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2006, 11:51 PM
Registered User
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spmanivel
Default How do get JDK or JRE version in programming?

How do get JDK or JRE version in application programming?

Kindly Reply..

BY

Mani
 
Old July 27th, 2006, 04:47 AM
Registered User
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just go to your comman prompt and type java -version.

 
Old July 28th, 2006, 02:07 AM
Registered User
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spmanivel
Default

no i want display in application?....

Mani
 
Old August 13th, 2006, 11:49 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are four overloaded versions of the exec() command:



public Process exec(String command);

public Process exec(String [] cmdArray);

public Process exec(String command, String [] envp);

public Process exec(String [] cmdArray, String [] envp);

The string "command" is prompt.

 
Old August 16th, 2006, 03:24 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The easy way is to use System.getProperty("java.version"). You can get lots more information about the environment using system properties too. Here's more information:

http://www.mindspring.com/~mgrand/ja...properties.htm

Jon Emerson
http://www.jonemerson.net/
 
Old September 2nd, 2006, 09:12 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to hotleave
Default

Â¥ÉϵĹûÈ»ÊǸßÊÖ¡£
well done,Jon Emerson!

ÎÒÃǶ¼ÊǹÂÒíµÄÌìʹ
Ö»ÓÐÏ໥ӵ±§²ÅÄÜ·ÉÏè





Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I check JRE version from my Web Page ubk_1004 Javascript How-To 0 August 21st, 2006 04:47 AM
JDK version confusion jlara BOOK: Beginning Java 2, JDK 5 Edition 1 May 18th, 2005 09:12 AM
JRE for AIX 4.3 roger egdell JSP Basics 0 October 13th, 2003 05:46 AM
ASP.NET Website Programming VB.NET version lean4huskytop Wrox Book Feedback 1 July 7th, 2003 10:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.