Examples of LibraryLoader


Examples of com.caucho.loader.LibraryLoader

                                         dataDirectory);

    Thread thread = Thread.currentThread();
    thread.setContextClassLoader(system.getClassLoader());
   
    LibraryLoader libLoader = new LibraryLoader();
    libLoader.setPath(rootDirectory.lookup("lib"));
    libLoader.init();

    Config config = new Config();
    BootResinConfig bootManager = new BootResinConfig(system, _args);

    ResinELContext elContext = _args.getELContext();
View Full Code Here

Examples of net.fortytwo.ripple.model.LibraryLoader

        ModelConnection mc = createConnection();

        try {
            // TODO: eliminate this temporary value map
            specialValues = new SpecialValueMap();
            specialValues = new LibraryLoader().load(mc);

            // At the moment, op needs to be a special value for the sake of the
            // evaluator.  This has the side-effect of making "op" a keyword.
            specialValues.add(Operator.OP, mc);
View Full Code Here

Examples of org.jblas.util.LibraryLoader

        // potentially load dependet libraries (mostly Cygwin libs for Windows)
        loadDependentLibraries();

        // Ok, and now load it!
        new LibraryLoader().loadLibrary("jblas", true);
      }

      // Let's do some quick tests to see whether we trigger some errors
      // when dependent libraries cannot be found
      double[] a = new double[1];
View Full Code Here

Examples of org.jblas.util.LibraryLoader

  public static void loadDependentLibraries() {
    String arch = System.getProperty("os.arch");
    String name = System.getProperty("os.name");

    LibraryLoader loader = new LibraryLoader();

    if (name.startsWith("Windows") && arch.equals("amd64")) {
      loader.loadLibrary("libgcc_s_sjlj-1", false);
      loader.loadLibrary("libgfortran-3", false);
    } else if (name.startsWith("Windows") && arch.equals("x86")) {
      loader.loadLibrary("libgcc_s_dw2-1", false);
      loader.loadLibrary("libgfortran-3", false);
    }
  }
View Full Code Here

Examples of org.xmlvm.proc.lib.LibraryLoader

      if (arguments.option_greenlist() != null)
      { // Force loading of all greenlist classes
        preloadGreenlistFiles(arguments.option_greenlist(), xmlvmResources);
      }

      LibraryLoader libraryLoader= new LibraryLoader(arguments);

      // Add all required resources, that will not be referenced to the
      // usual way.
      for (XmlvmResource requiredResource : libraryLoader.loadMonolithicLibraries())
      {
        xmlvmResources.put(requiredResource.getFullName(), requiredResource);
      }

      // Make sure we have all types that are referenced loaded.
      libraryLoader.loadAllReferencedTypes(xmlvmResources);
    }
    bundle.addResources(xmlvmResources.values());
    return true;
  }
View Full Code Here

Examples of org.xmlvm.proc.lib.LibraryLoader

  }

  private void preloadGreenlistFiles(String greenlistFile, Map<String, XmlvmResource> resources)
  {
    UniversalFile greenList= UniversalFileCreator.createFile(new File(greenlistFile));
    LibraryLoader libraryLoader= new LibraryLoader(arguments);
    UniversalFile defaultGreenList= UniversalFileCreator.createFile("/lib/greenlist.txt", "lib/greenlist.txt");
    for (UniversalFile file : new UniversalFile[] { greenList, defaultGreenList })
    {
      Set<String> classes= ClassListLoader.loadGreenlist(file);
      if (classes != null)
      { // If any green list exists, force inclusion of its contents
        for (String className : classes)
        {
          if (!resources.containsKey(className))
          {
            XmlvmResource resource= libraryLoader.load(className);
            if (resource != null)
            {
              resources.put(resource.getFullName(), resource);
            }
          }
View Full Code Here

Examples of org.xmlvm.proc.lib.LibraryLoader

      return preloadedResources.get(fullName);
    }
    else
    {
      Log.debug(TAG, "Loading JDK class: " + fullName);
      LibraryLoader loader= new LibraryLoader(arguments);
      XmlvmResource resource= loader.load(fullName);
      return resource;
    }
  }
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.