I installed the Oracle Sql developer but I am not getting the startup page. A JavaFx error is encountered.
How can I solve this problem?
I know this is a Linux thread, but I had the same issue on windows.
bmaupin pointed to the right correction.
My setup is that I use OpenJDK and have that set as JAVA_PATH. But if you download the correct version of Oracle SQL Developer, it brings its own Java SDK. All that needs to be done, is point to it.
_
# SetJavaHome C:\Program Files\OpenJDK8
SetJavaHome C:\Program Files\sqldeveloper\jdk
Done.
Well, i had to install Oracle's Java 8 SDK manually. And SQLDeveloper executes without errors
Since i have Ubuntu installed, i went to Oracle SQL Developer download page and downloaded Other Platforms. Notice right under it has a link to the lastest Oracle 8 JDK (211) next to Installation Notes.
You can follow here, but this is for a full install of Oracle's Java 8 JDK and i want only SQL Developer pointing to it. In sudo update-alternatives --config java
i still have openjdk installed with no problems.
So in /usr/lib/jvm:
sudo tar -xvzf ~/Downloads/jdk-8u211-linux-x64.tar.gz
Inform Ubuntu of installed location:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_211/bin/java" 0
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_211/bin/javac" 0
Check with sudo update-alternatives --config java
In local folder or user directory that executed sqldeveloper.sh:
nano/vi/vim/emacs /home/user/.sqldeveloper/19.1.0/product.conf
update the line SetJavaHome /usr/lib/jvm/someOpenJDKInstallation
to SetJavaHome /usr/lib/jvm/jdk1.8.0_211/
Or if running for a first time, answer this directory /usr/lib/jvm/jdk1.8.0_211/ when it asks for a JDK.