예제 #1
0
        private void CheckPrismVersion(string pathToJavaExe, string pathToPrism)
        {
            var javaMachineCode    = ExternalProcess.GetDllMachineType(pathToJavaExe);
            var fileNameToPrismDll = System.IO.Path.Combine(pathToPrism, "lib", "prism.dll");
            var prismMachineCode   = ExternalProcess.GetDllMachineType(fileNameToPrismDll);

            if (javaMachineCode != prismMachineCode)
            {
                throw new Exception("JAVA VM and PRISM version are not compiled for the same architecture.");
            }
        }