Depending on the issue, whether it's JAVA home path not correctly set or missing msvcr100.dll file, follow the below methods to rectify the problem:
1. Issue with JAVA home path not correctly set:
Follow these steps:
- Go to directory where SQL Developer is installed.
- Open the
/bin
directory.
- Open
sqldeveloper.conf
in any editor to edit.
- Remove the complete line starting with "
SetJavaHome
"
- If you see:
SetJavaHome ../../jdk
, this is probably the wrong config file.
- Instead, for try something like:
C:\Users\${username}\AppData\Roaming\sqldeveloper\4.2.0\product.conf
- Or:
C:\Users\${username}\Application Data\sqldeveloper\4.2.0\product.conf
- Save and close the file
- Start SQL Developer again.
- Provide the JAVA_HOME path, e.g.,
C:\Program Files (x86)\Java\jdk1.8.0_92
- Important: Do not include suffix
\bin\java.exe
- Important: If running 32-bit SQL Developer, be sure to use a 32-bit JVM. (Same for 64-bit.)
2. Issue with missing msvcr100.dll file:
OP stated the following in his comments below:
If I first install the jdk and then sql developer without Java, it
tells me Unable to launch the Java Virtual Machine Located at path:
C:/Program Files/Java/jdk1.8.0_45/bin/msvcr100.dll
So, the error message is clear:
Unable to launch the Java Virtual Machine Located at path:
C:/Program Files/Java/jdk1.8.0_45/bin/msvcr100.dll
Follow these steps:
copy:
MSVCR100.dll
from:
sqldeveloper\jdk\jre\bin
to:
sqldeveloper\sqldeveloper\bin
And relaunch SQL Developer again.
What is msvcr100.dll file?:
msvcr100.dll
is a part of Microsoft Visual C++ and is required to run programs developed with Visual C++. Some applications like SQL Developer in the question, needs the file in the SQL Developer installation folder.
What options are available to fix the issue?:
Copying it from Windows systemfolder to the installation folder of application should fix the problem. Also, you could add the PATH to the msvcr100.dll file based on 32/64 bit requirements. If the local file itself is deleted or corrupt by any chance, then it could be downloaded online or could also be reinstalled via Microsoft visual C++ 2010 Redistributable package. It is important to use the correct version based on the software. Use the 32bit dll file for 32bit software, and 64bit dll file for 64bit software.