Examples of Runtime


Examples of algoD.interpreter.RUNTIME

*/
public class algoD {

    public static void main(String[] args) {
        StData.log = new DCoutputH(true, System.getProperty("user.dir") + "/stuDI0/algo-D/Log.dcl");
        StData.RT = new RUNTIME();
        int e = StData.RT.INIT();
        if(e != 0){
            System.exit(e);
        }
        //CHECK(dcc.frame.minis.getfile.one(StData.log, "gimme language file"));
View Full Code Here

Examples of com.opera.core.systems.scope.protos.EcmascriptProtos.Runtime

  public void init() {
    updateRuntime();
  }

  public boolean updateRuntime() {
    Runtime activeRuntime = findRuntime();

    if (activeRuntime != null) {
      setRuntime(activeRuntime);
      return true;
    }
View Full Code Here

Examples of giggler.Runtime

       
        pluginDescriptor = loadPluginDescriptor();
       
        Class<Runtime> runtimeClass = getRuntimeClass();
       
        Runtime runtime = null;
       
        if (runtimeClass != null) {
           
            try {
               
                runtime = runtimeClass.newInstance();
               
            } catch (Exception e) {
                e.printStackTrace();
                throw new IllegalPluginException(e);
            }
        }
       
        File files[] = pluginDirectory.listFiles();
       
        for (File file : files) {
           
            boolean addToClassLoader = true;
           
            if (file.equals(pluginJarFile))
                addToClassLoader = false;
            else if (runtime != null)
                addToClassLoader = runtime.use(file.getName());
           
            if (addToClassLoader) {
               
                try {
                   
View Full Code Here

Examples of ioke.lang.Runtime


    public IkLanguage(LanguageMixin languageMixin, ExceptionFactory exceptionFactory) throws Exception, ControlFlow {
        super(languageMixin, exceptionFactory);

        ioke = new Runtime();
        ioke.init();
        ioke.ground.setCell("CucumberLanguage", this);
        ioke.evaluateString("use(\"cuke4duke/internal/ik/ik_dsl\")");
        clearHooksAndStepDefinitions();
View Full Code Here

Examples of jade.core.Runtime

       
  }
 
  private static void testAgents() throws Exception {
   
    final Runtime rt = Runtime.instance();
    Profile p = new ProfileImpl();
    p.setParameter("gui", "false");
    ContainerController cc = rt.createMainContainer(p);
   
    java.lang.Runtime.getRuntime().addShutdownHook(new Thread()
    {
        @Override
        public void run()
        {
            rt.shutDown();
        }
    });
   
    AgentController initiator = cc.createNewAgent("Initiator",
        InitiatorAgent.class.getCanonicalName(), null);
View Full Code Here

Examples of java.lang.Runtime

import java.lang.Runtime;
import java.lang.Process;

public class RuntimeExec {
  public static void main(String[] args) throws java.io.IOException, java.lang.InterruptedException {
    Runtime runtime = Runtime.getRuntime();
    String ieStr = null;
    String charmapStr = null;
    String[] firefox = new String[2];
   
    if(System.getProperty("os.name").equals("windows")){
      System.out.println("Executing internet explorer");
      ieStr = "\"c:\\program files\\internet explorer\\iexplore.exe\" http://www.google.com";
    } else {
      System.out.println("Executing Firefox using string");
      ieStr = "firefox http://www.google.com";
    }
    Process ie = runtime.exec(ieStr);
   
    if(System.getProperty("os.name").equals("windows")){
      System.out.println("Executing firefox");
      firefox[0] = "c:\\program files\\mozilla firefox\\firefox.exe";
      firefox[1] = "http://www.google.com";
    } else {
      System.out.println("Executing Firefox using array");
      firefox[0] = "firefox";
      firefox[1] = "http://www.google.com";
    }
    Process ff = runtime.exec(firefox);

    boolean ffSuccess = false;
    boolean ieSuccess = false;
    while(!(ieSuccess && ffSuccess)){
      if(!ffSuccess){
        try{
          System.out.println("Exit value from string exec: " + ff.exitValue());
          ffSuccess = true;
        } catch(IllegalThreadStateException e) {}
      }
      if(!ieSuccess){
        try{
          System.out.println("Exit value from array exec: " + ie.exitValue());
          ieSuccess = true;
        } catch(IllegalThreadStateException e) {}
      }
    }
    if(System.getProperty("os.name").equals("windows")){
      System.out.println("Executing and waiting for charmap");
      charmapStr = "c:\\windows\\system32\\charmap.exe";
    } else {
      System.out.println("Executing and waiting for firefox");
      charmapStr = "firefox http://www.google.com";
    }
    Process cm = runtime.exec(charmapStr);
    System.out.println("Exit value: " + cm.waitFor());
  }
View Full Code Here

Examples of jnr.ffi.Runtime

    }

   
    @Test public void inOnlyReferenceSet() {
        TestLibInOnly lib = TstUtil.loadTestLib(TestLibInOnly.class);
        Runtime runtime = Runtime.getRuntime(lib);

        final Pointer MAGIC = Memory.allocateDirect(runtime, 123);
       
        PointerByReference ref = new PointerByReference(MAGIC);
        assertEquals("Wrong value passed", MAGIC, lib.ptr_ret_pointer(ref, 0));
View Full Code Here

Examples of org.apache.jmeter.control.RunTime

        }
    }

    /* Implements JMeterGUIComponent.createTestElement() */
    public TestElement createTestElement() {
        RunTime lc = new RunTime();
        modifyTestElement(lc);
        return lc;
    }
View Full Code Here

Examples of org.apache.jmeter.control.RunTime

    }

    /* Implements JMeterGUIComponent.createTestElement() */
    public TestElement createTestElement()
    {
        RunTime lc = new RunTime();
        modifyTestElement(lc);
        return lc;
    }
View Full Code Here

Examples of org.apache.jmeter.control.RunTime

    }

    /* Implements JMeterGUIComponent.createTestElement() */
    @Override
    public TestElement createTestElement() {
        RunTime lc = new RunTime();
        modifyTestElement(lc);
        return lc;
    }
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.