Ejemplo n.º 1
0
        public void SetUp()
        {
            var options = new JvmManagerOptions();
            options.JavaHome = Configuration.JavaHome;
            options.JvmHooks.SetExitHook(ExitHook);
            options.JvmHooks.SetAbortHook(AbortHook);

            JvmManager = JvmManager.Create(options);
        }
Ejemplo n.º 2
0
        internal JavaVmWrapper(JvmManager jvmManager, IntPtr javaVmPtr)
        {
            Debug.Assert(javaVmPtr != IntPtr.Zero);
            Debug.Assert(jvmManager != null);

            _javaVmPtr = javaVmPtr;
            JvmManager = jvmManager;
            InitFunctions();

            GlobalReferences = new GlobalReferencesManager();
        }