Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Tap into eclipse preferences page(To find out the installed jre's)
Tap into eclipse preferences page [message #546623] Tue, 13 July 2010 14:59 Go to next message
Missing name Missing name
Messages: 20
Registered: May 2010
Junior Member
I have an eclipse RCP that needs to find out all the installed jre's. I know that eclipse preferences has a tab where we can find all the installed jre's. Is there any way I can programmatically get the list of jre's ? Or can I create a preferences view in my RCP and show the default eclipse preferences?

Thanks.
Re: Tap into eclipse preferences page [message #546677 is a reply to message #546623] Tue, 13 July 2010 17:27 Go to previous messageGo to next message
Eclipse User
Originally posted by: cjcool.comcast.net

I believe you can use the JavaRuntime to see what is available:

IVMInstallType[] types = JavaRuntime.getVMInstallTypes();

Chris

"NewToXtext" <vinayakreddy4@gmail.com> wrote in message
news:i1hv09$234$1@build.eclipse.org...
>I have an eclipse RCP that needs to find out all the installed jre's. I
>know that eclipse preferences has a tab where we can find all the installed
>jre's. Is there any way I can programmatically get the list of jre's ? Or
>can I create a preferences view in my RCP and show the default eclipse
>preferences?
>
> Thanks.
Re: Tap into eclipse preferences page [message #546699 is a reply to message #546677] Tue, 13 July 2010 20:03 Go to previous message
Missing name Missing name
Messages: 20
Registered: May 2010
Junior Member
Thanks for the reply. I tried the following

IVMInstallType[] types = JavaRuntime.getVMInstallTypes();
for (int i = 0; i < types.length; i++) {
IVMInstall[] installs = types[i].getVMInstalls();
}

But the getVMInstalls which gives the list of registered VMs, is always empty.
The 'types' though are found , 3 in number.


How does eclipse find out the list of installed Jre's in the system??

Previous Topic:Linux packages required to run RCP app
Next Topic:How to prompt a custom dialog when close editor and application
Goto Forum:
  


Current Time: Sat Oct 25 01:45:07 GMT 2014

Powered by FUDForum. Page generated in 0.04415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software