JGleason
JGleason

Reputation: 3946

How do I reset the JDK on SQL Developer on Windows?

I was trying to get Oracle SQL developer working on my computer. It prompted me to select my JDK and I selected my v12 JDK. When I try to start I get...

enter image description here

Where that blacked out part is the JDK12 url. I tried using the sqldeveloper/bin/sqldeveloper.conf file using the setJavaHome variable but it doesn't seem to help. I don't have permissions to regedit but my gut is telling me there is a registry value set somewhere.

How do I reset the JDK in Oracle SQL Developer using Windows?

Upvotes: 0

Views: 5428

Answers (2)

JGleason
JGleason

Reputation: 3946

I renamed my JDK12 folder and started the app. It was then reprompting me for the file location of the JDK. Then I changed it back so my env vars didn't need updating.

Upvotes: 1

thatjeffsmith
thatjeffsmith

Reputation: 22457

We don't use the Windows registry, but your gut isn't far off.

For windows, it's defined in your product.conf file found in your OS User's AppData, Roaming Profiles folder.

For Mac/Nix, it'd be in $HOME/.sqldeveloper

Windows:

enter image description here

Where you see 1.0.0.0 will represent the version of SQL Developer you need to configure the Java home for. I think 1.0 translates to version 4.0, and everything after that should be same as the actual version. I have a 19.4.0 directory for version 19.4 for example.

And a Java12 home for SQL Developer, at least for recent versions will work just fine.

My product.conf for version 19.4 is set to

SetJavaHome C:\Program Files\Java\jdk-12.0.2

Upvotes: 0

Related Questions