Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get JRE or JDK version programmatically?

843798May 25 2007 — edited May 25 2007
Hi,
I'm using eclipse 3.1 and want to get the JRE or JDK version programmatically
I wrote
System.getProperties();
System.getProperty("java.version");

It's not giving any errors, it's working fine but it prints empty values

does any one has any idea about this? and how to do it in another way?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2007
Added on May 25 2007
1 comment
863 views