private boolean initializeOpenVRLibrary() { if (initialized) { return true; } logger.info("Adding OpenVR search path: " + NativeHelper.getOpenVRLibPath()); NativeLibrary.addSearchPath("openvr_api", NativeHelper.getOpenVRLibPath()); if (jopenvr.JOpenVRLibrary.VR_IsHmdPresent() != 1) { logger.info("VR Headset not detected."); return false; } logger.info("VR Headset detected."); return true; }
NativeLibrary.addSearchPath("gstreamer-0.10", gpath); } else { throw new WebcamException(String.format("GStreamer has not been installed or not available in PATH: %s", path));
/** * Set the explicit path to the folder containing shared library files. * @param libraryPath */ public static void addLibraryPath(String libraryPath) { for (String libraryName : LIBRARY_NAMES) { NativeLibrary.addSearchPath(libraryName, libraryPath); } }
private static void addNativePath(String path) { NativeLibrary.addSearchPath("vpx", path); NativeLibrary.addSearchPath("yuv", path); NativeLibrary.addSearchPath("mkv", path); NativeLibrary.addSearchPath("interface", path); NativeLibrary.addSearchPath("xvfb_interface", path); NativeLibrary.addSearchPath("x11_screenshot_source", path); }
public MyVideoPanel() { NativeLibrary.addSearchPath("libvlc", vlcWhere.getAbsolutePath()); EmbeddedMediaPlayerComponent videoCanvas = new EmbeddedMediaPlayerComponent(); setLayout(new BorderLayout()); add(videoCanvas, BorderLayout.CENTER); player = videoCanvas.getMediaPlayer(); }
/** * On later versions of OSX, it is necessary to force-load libvlccore before libvlc, otherwise libvlc will fail to * load. * * @param path */ private void forceLoadLibVlcCore(String path) { NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcCoreLibraryName(), path); NativeLibrary.getInstance(RuntimeUtil.getLibVlcCoreLibraryName()); }
NativeLibrary.addSearchPath("gstreamer-0.10", gpath); } else { throw new WebcamException(String.format("GStreamer has not been installed or not available in PATH: %s", path));
Log.d(LOG_TAG, System.getProperty("os.name")); if (System.getProperty("os.name").startsWith("Mac")) { NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), VLC_MAC); Native.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), uk.co.caprica.vlcj.binding.LibVlc.class); Log.d(LOG_TAG, "VLC available"); if (vlcDirectory1.exists()) { Log.d(LOG_TAG, "Found VLC at " + VLC_WINDOWS1); NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), VLC_WINDOWS1); } else if (vlcDirectory2.exists()) { Log.d(LOG_TAG, "Found VLC at " + VLC_WINDOWS2); NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), VLC_WINDOWS2);
NativeLibrary.addSearchPath("lua5.1", LUA_PATH);
static synchronized void init(final MongoEmbeddedSettings mongoEmbeddedSettings) { if (mongoDBCAPI != null) { throw new MongoClientEmbeddedException("MongoDBCAPI has been initialized but not closed"); } if (mongoEmbeddedSettings.getLibraryPath() != null) { NativeLibrary.addSearchPath(NATIVE_LIBRARY_NAME, mongoEmbeddedSettings.getLibraryPath()); } try { mongoDBCAPI = Native.loadLibrary(NATIVE_LIBRARY_NAME, MongoDBCAPI.class); } catch (UnsatisfiedLinkError e) { throw new MongoClientEmbeddedException(format("Failed to load the mongodb library: '%s'." + "%n %s %n" + "%n Please set the library location by either:" + "%n - Adding it to the classpath." + "%n - Setting 'jna.library.path' system property" + "%n - Configuring it in the 'MongoEmbeddedSettings.builder().libraryPath' method." + "%n", NATIVE_LIBRARY_NAME, e.getMessage()), e); } libraryStatusPointer = createStatusPointer(); libraryPointer = mongoDBCAPI.mongo_embedded_v1_lib_init(new MongoDBCAPIInitParams(mongoEmbeddedSettings), libraryStatusPointer); if (libraryPointer == null) { createErrorFromStatus(libraryStatusPointer); } }
if (path != null) { if (discoveryStrategy.onFound(path)) { NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), path);