Examples of IVMInstall


Examples of org.eclipse.jdt.launching.IVMInstall

      // no launch for remote servers
        return;
      }

      String mainTypeName = "org.apache.openejb.cli.Bootstrap";
      IVMInstall vm = verifyVMInstall(configuration);
      IVMRunner runner = vm.getVMRunner(mode);
     
      if(runner == null && ILaunchManager.PROFILE_MODE.equals(mode)){
        runner = vm.getVMRunner(ILaunchManager.RUN_MODE);
      }
      if(runner == null){
        throw new RuntimeException();
      }
     
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

          buf.append(']');
        }
        // append JRE name if we can compute it
        if (path.equals(new Path(JavaRuntime.JRELIB_VARIABLE)) && fLaunchConfiguration != null) {
          try {
            IVMInstall vm = JavaRuntime.computeVMInstall(fLaunchConfiguration);
            buf.append(" - "); //$NON-NLS-1$
            buf.append(vm.getName());
          } catch (CoreException e) {
          }
        }
        return buf.toString();
      case IRuntimeClasspathEntry.CONTAINER:
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

          buf.append(']');
        }
        // append JRE name if we can compute it
        if (path.equals(new Path(JavaRuntime.JRELIB_VARIABLE)) && fLaunchConfiguration != null) {
          try {
            IVMInstall vm = JavaRuntime.computeVMInstall(fLaunchConfiguration);
            buf.append(" - "); //$NON-NLS-1$
            buf.append(vm.getName());
          } catch (CoreException e) {
          }
        }
        return buf.toString();
      case IRuntimeClasspathEntry.CONTAINER:
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

          buf.append(']');
        }
        // append JRE name if we can compute it
        if (path.equals(new Path(JavaRuntime.JRELIB_VARIABLE)) && fLaunchConfiguration != null) {
          try {
            IVMInstall vm = JavaRuntime.computeVMInstall(fLaunchConfiguration);
            buf.append(" - "); //$NON-NLS-1$
            buf.append(vm.getName());
          } catch (CoreException e) {
          }
        }
        return buf.toString();
      case IRuntimeClasspathEntry.CONTAINER:
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

   
    public void launch(final ILaunchConfiguration config, String mode,
            ILaunch launch, IProgressMonitor monitor) throws CoreException {
        if (!validateConfig(config)) return;
       
         IVMInstall install= getVMInstall(config);
        IVMRunner runner = install.getVMRunner(mode);
       
        if (runner == null) {
            abort("Cannot initiate VM",
                    new RuntimeException("Cannot initiate VM"));
        }
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

     */
    public void launch(final ILaunchConfiguration config, String mode,
            ILaunch launch, IProgressMonitor monitor) throws CoreException {
        if (!validateConfig(config)) return;
       
        IVMInstall install= getVMInstall(config);
        IVMRunner runner = install.getVMRunner(mode);
       
        if (runner == null) {
            abort("Cannot initiate VM",
                    new RuntimeException("Cannot initiate VM"));
        }
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

    public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor)
        throws CoreException {

        // Verify the configuration
        String mainTypeName = verifyMainTypeName(configuration);
        IVMInstall vm = verifyVMInstall(configuration);
        IVMRunner runner = vm.getVMRunner(mode);

        ExecutionArguments execArgs =
            new ExecutionArguments(getVMArguments(configuration), getProgramArguments(configuration));
        Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
        String[] classpath = getClasspath(configuration);
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

    JavaCore.setOptions(options);
    incomplete = JavaCore.getOption(JavaCore.CORE_INCOMPLETE_CLASSPATH);
    SysOutProgressMonitor.out.println("Incomplete build path problems set to: " + incomplete);
    SysOutProgressMonitor.out.println();
   
    IVMInstall vminstall = JavaRuntime.getDefaultVMInstall();
    if (!vminstall.getName().equals("JRE"))
    {
      SysOutProgressMonitor.out.println("Setting the default JRE name to 'JRE' from '" + vminstall.getName() + "'");
      vminstall.setName("JRE");
      SysOutProgressMonitor.out.println();
    }
   
    IWorkspaceRoot wroot = ResourcesPlugin.getWorkspace().getRoot();
    File workspace = wroot.getLocation().toFile();
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

    private void launchApacheDS()
    {
        try
        {
            // Getting the default VM installation
            IVMInstall vmInstall = JavaRuntime.getDefaultVMInstall();

            // Creating a new editable launch configuration
            ILaunchConfigurationType type = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(
                IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION );
            ILaunchConfigurationWorkingCopy workingCopy = type.newInstance( null, NLS.bind( Messages
                .getString( "LaunchServerJob.StartingServer" ), new String[] { server.getName() } ) ); //$NON-NLS-1$

            // Setting the JRE container path attribute
            workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, vmInstall
                .getInstallLocation().toString() );

            // Setting the main type attribute
            workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
                "org.apache.directory.studio.apacheds.Launcher" ); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMInstall

     */
    public static ILaunch launchApacheDS( LdapServer server, IPath apacheDsLibrariesFolder, String[] libraries )
        throws Exception
    {
        // Getting the default VM installation
        IVMInstall vmInstall = JavaRuntime.getDefaultVMInstall();

        // Creating a new editable launch configuration
        ILaunchConfigurationType type = DebugPlugin.getDefault().getLaunchManager()
            .getLaunchConfigurationType( IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION );
        ILaunchConfigurationWorkingCopy workingCopy = type.newInstance( null, server.getId() );

        // Setting the JRE container path attribute
        workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, vmInstall
            .getInstallLocation().toString() );

        // Setting the main type attribute
        workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
            "org.apache.directory.studio.apacheds.Launcher" ); //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.