Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
772 views
in Technique[技术] by (71.8m points)

oracle - How to change settings for SQL Developer to correctly recognize current version of SDK

I've installed Oracle 11g r2 to my machine and when I opened Oracle SQL Developer it says: java 1.6.0_02 is not supported and telling me to install new java version.

Then I've installed JDK 1.6.0_27 and set the path in environment variables and run Oracle SQL Developer again, but the same error occurred.

How can I change the settings for Oracle SQL Developer to recognize 1.6.0_27 as my SDK?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

In windows 10, I needed to go to following folder and change following product.conf file and set SetJavaHome directive.

%APPDATA%sqldeveloper<product-version>product.conf

in my machine:

C:Usersati_oAppDataRoamingsqldeveloper17.4.0product.conf

with following line.

SetJavaHome C:Toolsoraclejdk8

Thanks to comment from @thatjeffsmith, in MacOS or Linux/Unix, go to:

$HOME/.sqldeveloper/<product-version>/product.conf

to set same SetJavaHome directive.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...