Changing SQL Developer Java Home

Version: SQL Developer 4 [Windows 32/64-bit without JDK]

When you launch SQL Developer for the first time, it will ask you for JDK location, but once you point it to a JDK location it will not ask you for it again, even if you happen to specify an unsupported version.

“C:\Users\admin\Downloads\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf” is misleading, it’s not the file which sets the Java Home variable. The actually file used is”%AppData%\sqldeveloper\{PRODUCT_VERSION}\product.conf” [in my case it is "%AppData%\sqldeveloper\1.0.0.0.0\product.conf"] As you can see in the above screenshot, I pointed it to JDK 6 update 45, which is an unsupported version. According to the error message it suggests that the supported versions are JDK 7 and JDK 8 and which can be now changed by editing the sqldeveloper.conf file located in “C:\Users\admin\Downloads\sqldeveloper\sqldeveloper\bin” directory and setting the SetJavaHome variable, which is very misleading. When I open the sqldeveloper.conf file the “SetJavaHome” variable was set to “../../jdk” which is not the location where I had installed JDK 6. I tried changing it to point to JDK 7 without any luck. It was still using JDK 6. Upon little investigation I found that the actual configuration file used is located in “%AppData%\sqldeveloper\1.0.0.0.0″ and named “product.conf”. When I opened this file I saw “SetJavaHome” variable pointing to JDK 6. Once I changed it to point to JDK 7, I was able to launch SQL Developer without and error message. Alternatively you can delete this “product.conf” file, so next time when you start SQL Developer it will prompt you for JDK location and this time you can point it to the correct JDK version.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值