Question

What if I want the user to select the JVM to use?

What if I want the user to select the JVM to use?

Answer:

You can do that by adding <promptUser> to the above example as shown below.

       <autodetectJava>
         <validVersionList>
           <validVersion>
             <vendor>sun</vendor>
             <minVersion>1.4.2</minVersion>
             <maxVersion>1.4</maxVersion>
           </validVersion>
           <validVersion>
             <vendor>ibm</vendor>
             <minVersion>1.3</minVersion>
             <maxVersion></maxVersion>
           </validVersion>
         </validVersionList>
         <promptUser>1</promptUser>
       </autodetectJava>