| Find IVMInstall with minimum version [message #296193] | 
Fri, 16 December 2005 11:44   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 11:53   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.25713 seconds