You should first convert .rpm file to .deb which is the installation file format in ubuntu.
sudo alien -d sqldeveloper-4.0.2.15.21-1.noarch.rpm
Then install that .deb file by :
sudo dpkg -i sqldeveloper-4.0.2.15.21-1.noarch.deb
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:
sudo apt install sqldeveloper-package
After installing, you can use it to build sqldeveloper by typing:
make-sqldeveloper-package /path/to/arch-ind-sqldeveloper-archive
This puts the build package in an autogenerated folder. Use
sudo make-sqldeveloper-package --install /path/to/arch-ind-sqldeveloper-archive
to directly install it on your system. You can get an overview of all commandline options with:
make-sqldeveloper-package --help
For running sqldeveloper you can connect to and use any JDK 1.8 (e.g. openjdk-8-jdk) or above.
Best Answer
I installed SQL Developer with these steps:
(See the comments—this might not be necessary)
Download and re-install newest Ubuntu 14.04 LTS from Ubuntu website.
Install Java:
Java Version JDK 7:
Java Version JDK 8 (in some installations this is a requirement instead of 1.7):
Download SQL Developer from Oracle website (I chose Other Platforms download).
Extract file to
/opt
:Linking over an in-path launcher for Oracle SQL Developer:
Edit
/opt/sqldeveloper/sqldeveloper.sh
and replace it's content to:or (to prevent error:
./sqldeveloper: Permission denied
)Run SQL Developer:
Finally, create desktop application for easy to use:
add this lines:
then type: