How to install sql developer on lubuntu 18.04
I tried the below link from Oracle (served as installation notes when you download sql developer) but that dint work.
Error:
Oracle now provides .rpm files instead of .zip and all the answers on this site help you with the .zip but not .rpm
The easiest way to install the Oracle SQL Developer program in all currently supported versions of Ubuntu is to install sqldeveloper-package from the default Ubuntu repositories. sqldeveloper-package makes it possible to build a Debian package of Oracle SQL Developer. This utility will require you to download the architecture independent archive from
https://www.oracle.com/technetwork/developer-tools/sql-developer
, identified as "Oracle SQL Developer for other platforms", "Oracle SQL Developer for Multiple Platforms" or "Oracle SQL Developer for Linux and Unix" (depending on which version you are building), to create the Debian package from.To install sqldeveloper-package open the terminal and type:
After installing, you can use it to build sqldeveloper by typing:
This puts the build package in an autogenerated folder. Use
to directly install it on your system. You can get an overview of all commandline options with:
For running sqldeveloper you can connect to and use any JDK 1.8 (e.g. openjdk-8-jdk) or above.
Then:
In terminal, cd to where you saved the RPM file
Now you can run the program. In my case it got installed to
/usr/local/bin
which is in my path. The first time you run it, make sure you do so in the foreground (do not ampersand it) because it's going to ask you to type in the path to a good JDK (the path above bin, for example/usr/lib/jvm/java-8-openjdk-amd64
).Et voila!
I was able to finally install SQL Developer after trying a whole bunch of things. Experts please improve this answer!
I used the Alien tool/utility/command to install SQL Developer.
the file i downloaded from oracle was
"sqldeveloper-18.2.0.183.1748-1.noarch.rpm"
i converted it .deb using Alien command
amar@amar-singh:~/Downloads$ sudo alien --scripts -d sqldeveloper-18.2.0.183.1748-1.noarch.rpm
result: sqldeveloper_18.2.0.183.1748-2_all.deb generated
do right click on the generated .deb file and select option "Software install"
this should take you to your software installer window where you can see SQL Developer being installed
once done you should now be able to run sql developer if you had previously installed JDK 8
software center
screenshot