|
Subject:
|
How do get JDK or JRE version in programming?
|
|
Posted By:
|
spmanivel
|
Post Date:
|
7/26/2006 11:51:41 PM
|
How do get JDK or JRE version in application programming?
Kindly Reply..
BY
Mani
|
|
Reply By:
|
amitbatra82
|
Reply Date:
|
7/27/2006 4:47:35 AM
|
Just go to your comman prompt and type java -version.
|
|
Reply By:
|
spmanivel
|
Reply Date:
|
7/28/2006 2:07:22 AM
|
no i want display in application?....
Mani
|
|
Reply By:
|
baiguang06
|
Reply Date:
|
8/13/2006 11:49:54 PM
|
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.
|
|
Reply By:
|
panacea
|
Reply Date:
|
8/16/2006 3:24:07 AM
|
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/java-system-properties.htm
Jon Emerson http://www.jonemerson.net/
|
|
Reply By:
|
hotleave
|
Reply Date:
|
9/2/2006 9:12:57 PM
|
Â¥ÉϵĹûÈ»ÊǸßÊÖ¡£ well done,Jon Emerson!
ÎÒÃǶ¼ÊǹÂÒíµÄÌìʹ Ö»ÓÐÏ໥ӵ±§²ÅÄÜ·ÉÏè
|