Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Find IVMInstall with minimum version
Find IVMInstall with minimum version [message #296193] Fri, 16 December 2005 16:44 Go to next message
Scott Rankin is currently offline Scott RankinFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

I'm writing a plugin to set up new Java projects that meet my company's
internal standards. One of the standards is to use Java 5, so I would
like to ensure that the VM for the project is one that supports Java 5. I
cannot seem to find a way to programmatically find which IVMInstalls
support Java 5.

Right now, I'm just using JavaRuntime.getDefaultJREContainerEntry(), which
works only if they have Java 5 as their default VM, which isn't the case
for a lot of folks.

Any suggestions?

Thanks,

Scott
Re: Find IVMInstall with minimum version [message #296196 is a reply to message #296193] Fri, 16 December 2005 16:53 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Try seeing if the IVMInstall instance also implements IVMInstall2.
IVMInstall2 has a method to return the java version. it may not be able
to return it, so you check for that case too.

Scott Rankin wrote:
> Hello,
>
> I'm writing a plugin to set up new Java projects that meet my company's
> internal standards. One of the standards is to use Java 5, so I would
> like to ensure that the VM for the project is one that supports Java 5.
> I cannot seem to find a way to programmatically find which IVMInstalls
> support Java 5.
> Right now, I'm just using JavaRuntime.getDefaultJREContainerEntry(),
> which works only if they have Java 5 as their default VM, which isn't
> the case for a lot of folks.
> Any suggestions?
>
> Thanks,
>
> Scott
>

--
Thanks,
Rich Kulp
Previous Topic:Console does not display
Next Topic:Feature dependencies when using Update Manager
Goto Forum:
  


Current Time: Thu Dec 26 23:07:37 GMT 2024

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

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

Back to the top