[Java 7][msvcr100.dll] Error when load Eclipse

[Problem] After I updated to Java 7, I could not load Eclipse. Here comes the erros:

Eclipse: eclipse.exe - Bad Image

C:\Windows\system32\MSVCR100.dll is either not designed to run on Windows or it contains an error. Trying installing the program again using the original installation media or ...

Eclipse

Failed to load the JNI shared library "C:\ ....."

 

[Temp Solution]

Disable the MSVCR100.dll in the directory "C:\Windows\system32". Simply rename it to "MSVCR100_backup.dll", and it would be OK if you load Eclipse once again.

The reason is caused by Java 7 which uses its own MSVCR100.dll in its installation directory.

So, when you load Eclipse. Firstly it load JVM. JVM requires the MSVCR100.dll in directory of JAVA 7 instead of "C:\Windows\system32". However, your machine would firstly search the "C:\Windows\system32" and return the inappropriate one. Then the error comes.

By removing the dll from system32, it would return the right MSVCR100.dll from the directory of JAVA 7, then succeed in loading Eclipse.

 

However, this strategy is temp and risky. The following recommends the correct solution.

[Solution] http://www.duckware.com/tech/java6msvcr71.html

 

你可能感兴趣的:([Java 7][msvcr100.dll] Error when load Eclipse)