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 FilesJavajdk1.7.0_17jrelibjvm.cfg'
3.原因
oracle 11g中安装的Oracle SQL Developer是32位的,而我们现在给他指定的java.exe却是64位的,所以会出现这种错误。
4.解决方法
1)从网上下载Oracle SQL Developer x64,然后替换原目录:E:appzhongzhproduct11.2.0dbhome_1sqldeveloper。这样重新启动Oracle SQL Developer 并制定java.exe的路径就可以了。
2)安装JDK6 x86,也就是32位的JDK,虽然我们的系统是64位的,但是也兼容32位的JDK。
上述两种方法均试过,都可以正常运行。
path环境变量:
E:appzhongzhproduct11.2.0client_1in;C:Program Files (x86)ScanSign;E:appzhongzhproduct11.2.0dbhome_1in;D:appzhongzhproduct11.2.0client_1in;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;%SYSTEMROOT%System32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;c:Program Files (x86)HPHP Performance Advisor;%USERPROFILE%.dnxin;C:Program FilesMicrosoft DNXDnvm;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program Files (x86)Windows Kits8.1Windows Performance Toolkit;C:TDM-GCC-64in;C:PROGRAM FILESCOMMON FILESFAST;C:PROGRAM FILESCOMMON FILESFASTCAD;%JAVA_HOME%in;%JAVA_HOME%jrein;C:Program Files (x86)Microsoft SQL Server80ToolsBinn;C:Program FilesMicrosoft SQL Server90DTSBinn;C:Program FilesMicrosoft SQL Server90Toolsinn;C:Program Files (x86)Microsoft SQL Server90Toolsinn;C:Program Files (x86)Microsoft SQL Server90DTSBinn;C:Program Files (x86)Microsoft SQL Server90ToolsBinnVSShellCommon7IDE;C:Program Files (x86)Microsoft Visual Studio 8Common7IDEPrivateAssemblies;C:PROGRAM FILES (X86)COMMON FILESFAST;C:PROGRAM FILES (X86)COMMON FILESFASTCAD;%JAVA_HOME%in;%JAVA_HOME%jrein;%CXF_HOME%in;%CATALINA_HOME%lib;%CATALINA_HOME%in;%ANT_HOME%in;D:Program FilesVisualSVN Serverin;C:Program FilesTortoiseSVNin;D:mysql-5.6.24-win32.1432006610mysql-5.6.24-win32
谢谢楼主,也可以修改 {ORACLE_HOME}sqldevelopersqldeveloperinsqldeveloper.conf 文件的 SetJavaHome,重新定向到 32位jdk。