解决ODI Studio等启动时报Unable to launch the Java Virtual Machine Located at path: ...\jre\bin\msvcr100.dll的问题
问题现象
启动ODI Studio报错,提示如图:
问题原因
根据Oracle Support文档《Java SE 8 Update 261+ and Java SE 7 Update 291+ Runtime Windows Visual Studio Library (DLL) Dependency Changes (Doc ID 2684819.1)》,Windows版的Java SE 8 Update 261和Java SE 7 Update 291及以后的版本,使用Microsoft Visual Studio 2017工具链进行编译,所以不再自带msvcr100.dll这个文件。如果运行的应用对这个文件存在依赖,则可能会报如下错误:
The code execution cannot proceed because MSVCR100.dll was not found. Reinstalling the program may fix this problem.
Unable to launch the Java Virtual Machine Located at path: <JDK_HOME>\jre\bin\msvcr100.dll
该文件给出的解决方案是:自行解决这个依赖。
解决方法
安装适合你的Windows版本的Microsoft Visual C++ 2010 Redistributable,然后将X:\WINDOWS\system32\msvcr100.dll复制到<JDK_HOME>\jre\bin\目录下即可。