windows SQLDeveloper 不会启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16483882/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SQLDeveloper will not launch
提问by eborgner
I've just installed Oracle 11g on Windows, but I can't seem to launch SQLDeveloper. I get the following error: "Windows is searching for SQLDEVELOPER.BAT". To locate the file yourself, click Browse".
我刚刚在 Windows 上安装了 Oracle 11g,但似乎无法启动 SQLDeveloper。我收到以下错误:“Windows 正在搜索 SQLDEVELOPER.BAT”。要自己查找文件,请单击“浏览”。
I've looked for SQLDEVELOPER.BAT but I can't find it.
我已经寻找 SQLDEVELOPER.BAT 但我找不到它。
I've also tried to launch sqldeveloper.exe directly, but it asks for the path to java.exe. When I browse and select C:\Program Files (x86)\Java\jre7\bin\java.exe, but then I get the error: Cannot find a J2SE SDK installed at path: C:\Program Files (x86)\Java\jre7
我也尝试过直接启动 sqldeveloper.exe,但它要求提供 java.exe 的路径。当我浏览并选择 C:\Program Files (x86)\Java\jre7\bin\java.exe,但随后出现错误:找不到安装在路径的 J2SE SDK:C:\Program Files (x86)\Java \jre7
When I select C:\app\mbergeron\product\11.2.0\dbhome_1\jre\1.5.0\bin\java.exe I get the same error (Cannot find a J2SE SDK)
当我选择 C:\app\mbergron\product\11.2.0\dbhome_1\jre\1.5.0\bin\java.exe 我得到同样的错误(找不到 J2SE SDK)
When I select C:\app\mbergeron\product\11.2.0\dbhome_1\jdk\bin\java.exe, I get no error. It just goes back to the dialog asking for java.exe
当我选择 C:\app\mbergron\product\11.2.0\dbhome_1\jdk\bin\java.exe 时,我没有收到任何错误。它只是回到要求 java.exe 的对话框
I've tried launching sqldeveloper.exe from the console, but I'm not getting error messages in the console.
我已经尝试从控制台启动 sqldeveloper.exe,但我没有在控制台中收到错误消息。
回答by Tchevass
-All you have to do is install Gitbash or any Shell interpreter on your windows PC. Then you have to change the target of the shortcut in the start menu.
- 您所要做的就是在您的 Windows PC 上安装 Gitbash 或任何 Shell 解释器。然后您必须在开始菜单中更改快捷方式的目标。
Start Menu > Oracle - OraDb11g_home1 > Application Development > SQL Developper -> Properties
开始菜单 > Oracle - OraDb11g_home1 > 应用程序开发 > SQL Developper -> 属性
CHANGE "Target" By : C:\app\ORACLE_HOME\product\11.2.0\dbhome_1\sqldeveloper\sqldeveloper.sh
更改“目标”通过:C:\app\ORACLE_HOME\product\11.2.0\dbhome_1\sqldeveloper\sqldeveloper.sh
CHANGE "Start In" By : C:\app\ORACLE_HOME\product\11.2.0\dbhome_1\sqldeveloper
更改“开始于”通过:C:\app\ORACLE_HOME\product\11.2.0\dbhome_1\sqldeveloper
You can now access SQL Developer, with a direct link from your start menu.
您现在可以通过开始菜单中的直接链接访问 SQL Developer。
回答by Chukwudi Dike
Hit this: Type the full pathname of a J2SE installation (or Ctrl-C to quit), the path will be stored in ~/.sqldeveloper/jdk
打这个:输入J2SE安装的完整路径名(或Ctrl-C退出),路径将存储在~/.sqldeveloper/jdk
回答by D. Lohrstr?ter
You don't need the .bat for execution!
您不需要 .bat 来执行!
On older SQL-Developer Versions (don't know when it changed, but around 4.x), you had to setup the path to jdk at first startup. Either by editing the product.conf file (Usually under %APPDATA%\sqldeveloper*\product.conf) or by starting sqldeveloper.exe via commandline. It will ask you then about the path within commandline, and not via GUI. This is the reason, why you should try it via commandline.
在较旧的 SQL-Developer 版本(不知道它何时更改,但在 4.x 左右)上,您必须在第一次启动时设置 jdk 的路径。通过编辑 product.conf 文件(通常在 %APPDATA%\sqldeveloper*\product.conf 下)或通过命令行启动 sqldeveloper.exe。然后它会询问您命令行中的路径,而不是通过 GUI。这就是为什么你应该通过命令行尝试它的原因。
Same situation is on UNIX/LINUX.
同样的情况在 UNIX/LINUX 上。
With newer releases, it has been changed and shouldn't be required anymore.
在较新的版本中,它已被更改,不再需要。
回答by Gella
Or you could just point SQLdeveloper to the java in the oracle folder: (ORACLE_HOME)/jdk/bin/Java.exe
或者您可以将 SQLdeveloper 指向 oracle 文件夹中的 java:(ORACLE_HOME)/jdk/bin/Java.exe