Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLDeveloper not starting

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?

like image 658
user1407668 Avatar asked Apr 02 '14 11:04

user1407668


People also ask

Why SQL Developer is not opening?

It's possible that your Windows jdk path isn't recognizable or missing. You should have sqldeveloper. conf file that contains a reference to your JDK directory. Find your jdk path and make sure it's reflected in your sqldeveloper.

How do I start SQL Developer in Linux?

To start SQL Developer, click the application's icon. In Linux, unpack the . rpm package, and then change ( cd to the sqldeveloper directory. To launch SQL Developer, run the sqldeveloper.sh shell script.

How do I run SQL Developer exe?

Open the directory where the SQL Developer 3.0 is located, right-click sqldeveloper.exe (on Windows) or sqldeveloper.sh (on Linux) and select Send to > Desktop (create shortcut). 2 . On the desktop, you will find an icon named Shortcut to sqldeveloper.exe. Double-click the icon to open SQL Developer 3.0.


2 Answers

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!
like image 68
Rahinur Rahaman Avatar answered Sep 27 '22 21:09

Rahinur Rahaman


In my case i had 2 folders under C:\Users\username\AppData\Roaming\

  1. sqldeveloper
  2. SQL developer

after removing both of them and launching installation dir\sqldeveloper\sqldeveloper\bin\sqldeveloper64.exe it worked.

like image 40
rigby Avatar answered Sep 27 '22 23:09

rigby