Determining version of JRE programmatically [message #1006237] |
Wed, 30 January 2013 09:43  |
Eclipse User |
|
|
|
I'm trying to verify the version of the JRE chosen by the user for a Java Project before launch (in runtime it will have to use additional files compiled by a specific version, so the check is needed to see if they are compatible).
I know I can check the default one using system properties, but the user might have several and defined a different one for the project. I can also get the name of the JRE within Eclipse but that is user defined, so doesn't work.
Through the classpath I can't get information of the location to do a system call with java -version on the specific folder, because it uses JRE_Container. Through VMInstall it only gives me the default one Eclipse is using.
Anyone has ever encountered this problem? Any help would be much appreciated.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03754 seconds