SQLDeveloper not starting

user1407668 picture user1407668 · Apr 2, 2014 · Viewed 50.4k times · Source

When i try to start SQLDeveloper, it is giving me the following error in command prompt:

Error: This product requires a Java(TM) Platform 5.0 runtime.
You are using 1.4.2-b28 from C:\j2sdk1.4.2\jre

But my JAVA_HOME is set to java 6

JAVA_HOME=C:\Program Files\Java\jdk1.6.0_32

Can anyone explain what exactly to do to resolve this?

Answer

Rahinur Rahaman picture Rahinur Rahaman · Apr 17, 2014

Oracle SQL Developer uses a configuration file named products.conf which is situated at your roaming directory.

If you are using Windows 7 then the directory path will be: C:\Users\\AppData\Roaming\sqldeveloper\1.0.0.0.0

  1. Delete whole sqldeveloper directory from C:\Users\\AppData\Roaming\
  2. Re run sqldeveloper executable, this will prompt for jdk home
  3. Select jdk home. i.e C:\Program Files\Java\jdk1.7.0_55
  4. Enjoy!