【oracle】首次启动SQL Developer配置java.exe出错(Could not find jvm.cfg! )
1.环境
win7/8/8.1 x64,Oracle 11g r2,jdk7 x64
2.问题
第一次启动Oracle SQL Developer的时候会让我们填写Java.exe的路径,我在jdk安装目录下的bin中找到了java.exe,但是填写以后报如下错误:
WARNING: Could not find jvm.cfg! in 'C:\Program Files\Java\jdk1.7.0_17\jre\lib\jvm.cfg'
3.原因
oracle 11g中安装的Oracle SQL Developer是32位的,而我们现在给他指定的java.exe却是64位的,所以会出现这种错误。
4.解决方法
1)从网上下载Oracle SQL Developer x64,然后替换原目录:E:\app\zhongzh\product\11.2.0\dbhome_1\sqldeveloper。这样重新启动Oracle SQL Developer 并制定java.exe的路径就可以了。
2)安装JDK6 x86,也就是32位的JDK,虽然我们的系统是64位的,但是也兼容32位的JDK。
上述两种方法均试过,都可以正常运行。
path环境变量:
E:\app\zhongzh\product\11.2.0\client_1\bin;C:\Program Files (x86)\ScanSign;E:\app\zhongzh\product\11.2.0\dbhome_1\bin;D:\app\zhongzh\product\11.2.0\client_1\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\HP\HP Performance Advisor;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\TDM-GCC-64\bin;C:\PROGRAM FILES\COMMON FILES\FAST;C:\PROGRAM FILES\COMMON FILES\FAST\CAD;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\PROGRAM FILES (X86)\COMMON FILES\FAST;C:\PROGRAM FILES (X86)\COMMON FILES\FAST\CAD;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%CXF_HOME%\bin;%CATALINA_HOME%\lib;%CATALINA_HOME%\bin;%ANT_HOME%\bin;D:\Program Files\VisualSVN Server\bin;C:\Program Files\TortoiseSVN\bin;D:\mysql-5.6.24-win32.1432006610\mysql-5.6.24-win32
谢谢楼主,也可以修改 {ORACLE_HOME}\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf 文件的 SetJavaHome,重新定向到 32位jdk。