[英]Modifying JDK Path for Oracle SQL Developer in Ubuntu
I have Oracle SQL Developer installed at the following location: 我在以下位置安装了Oracle SQL Developer:
/opt/sqldeveloper
Every time I run it using the command ./sqldeveloper
, I get the following error from the GUI: 每次我使用
./sqldeveloper
命令运行它时,都会从GUI中收到以下错误:
You are attempting to run with Java 1.6.0_31.
您正在尝试使用Java 1.6.0_31运行。 Running this product is supported with a minimum Java version of 1.7.0_51 and less than 1.8
最低Java版本1.7.0_51和小于1.8支持运行此产品。
I updated the sqldeveloper.conf file with the following paths: 我使用以下路径更新了sqldeveloper.conf文件:
/usr/java/jdk1.8.0_05
and 和
/usr/java/jdk1.7.0_55
And despite all that, same error again. 尽管如此,再次出现相同的错误。
Configure Path to Java 配置Java路径
SQL-Developer needs to know how to find your Java Developer Kit: SQL-Developer需要知道如何找到您的Java Developer Kit:
Note: You need to specify /usr/lib/jvm/java-6-openjdk-i386 on 32-bit OS installations. 注意:在32位操作系统安装上,您需要指定/ usr / lib / jvm / java-6-openjdk-i386。
Terminal 终奌站
cd $HOME cd $ HOME
mkdir -p .sqldeveloper mkdir -p .sqldeveloper
cd $HOME/.sqldeveloper cd $ HOME / .sqldeveloper
echo "/usr/lib/jvm/java-6-openjdk" > jdk 回声“ / usr / lib / jvm / java-6-openjdk”> jdk
I know I am a bit late with the response, but I had exactly the same issue until this morning. 我知道我的回复有点晚了,但是直到今天早上我都遇到了同样的问题。
What I did is changed: ~/.sqldeveloper/4.0.0/product.conf 我所做的更改:〜/ .sqldeveloper / 4.0.0 / product.conf
FYI: 仅供参考:
How I figure it out: 我如何知道的:
1. Go to OracleSQLDeveloper -> Help(menu) -> Properties 1.转到OracleSQLDeveloper->帮助(菜单)->属性
2. Find 'java.home' 2.找到“ java.home”
(For some reason it was pointing to /usr/lib/jdk1.7.0 (ver 1.7.45), even I've changed sqldeveloper.conf) (由于某种原因,它指向了/usr/lib/jdk1.7.0(1.7.45版),即使我更改了sqldeveloper.conf)
3. Since I didn't recognized that specific version, I just ran: 3.由于我不认识该特定版本,因此我运行了:
sudo "find / .... -name '*.conf' -exec grep 'jdk1.7.0' ..." sudo“查找/...。-名称'* .conf'-exec grep'jdk1.7.0'...”
goodluck 祝好运
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.