Package org.adoptopenjdk.jitwatch.sandbox.runtime

Examples of org.adoptopenjdk.jitwatch.sandbox.runtime.IRuntime


    return compiler;
  }

  private IRuntime getRuntime(String language, ISandboxLogListener logger)
  {
    IRuntime runtime = null;

    String runtimePath = logParser.getConfig().getVMLanguageRuntimePath(language);

    if (runtimePath != null && !S_EMPTY.equals(runtimePath))
    {
View Full Code Here


    {
      logListener.log(language + " compiler path not set. Please click Configure Sandbox and set up the path.");
      return;
    }

    IRuntime runtime = getRuntime(language, logListener);

    if (runtime == null)
    {
      logListener.log(language + " runtime path not set. Please click Configure Sandbox and set up the path.");
      return;
    }

    logListener.log("Compiling: " + StringUtil.listToString(compileList));

    boolean compiledOK = compiler.compile(compileList, logParser.getConfig().getClassLocations(), SANDBOX_CLASS_DIR.toFile(),
        logListener);

    logListener.log("Compilation success: " + compiledOK);

    if (compiledOK)
    {
      String fqClassNameToRun = runtime.getClassToExecute(fileToRun);

      boolean executionSuccess = executeClass(fqClassNameToRun, runtime, logParser.getConfig().isSandboxIntelMode());

      logListener.log("Execution success: " + executionSuccess);

      if (executionSuccess)
      {
        runJITWatch();

        if (!logParser.hasParseError())
        {
          String fqClassNameForTriView = runtime.getClassForTriView(fileToRun);

          showTriView(language, fqClassNameForTriView);
        }
      }
      else
      {
        sandboxStage.showError(runtime.getErrorStream());
      }
    }
    else
    {
      sandboxStage.showError(compiler.getErrorStream());
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.sandbox.runtime.IRuntime

Copyright © 2018 www.massapicom. 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.