./configure no such file or directory even after installing build essentials
Solution 1:
You only run the ./configure command when building certain applications from source.
The Java installation files that you have downloaded aren't source code they are precompiled binaries. For instructions on how to install Java take a look at the page on the Ubuntu Wiki as this has several different options.
I recomend using the option titled 'Using webupd8.org's strikingly simple method.' as it will integrate the installation of Java with your package manaement system and automatically keep it up to date along with the rerst of your system.
Solution 2:
Preamble
The reason why you are getting the "bash: ./configure: No such file or directory" is because you are not in the right directory where the downloaded file you are about to install is located.
To fix that
(a.) FOLLOWING README INSTRUCTION
- Locate where your downloaded Java tar.gz file.
- Extract the file by right-clicking on it and select 'Extract Here'.
- Look for the 'Readme text' file and open it.
- Follow the instruction on how to install the file in the Readme text(installation of tar.gz file can be different from normal commands used to do installation of files in Ubuntu).
(b.) USING GENERAL COMMANDS
- Open the terminal by pressing CTRL + ALT +T.
- Type tar -zxvf .tar.gz .
- Type sudo su and enter your root password.
- type cd and add the path of your downloaded file . If you do not know the path of the downloaded file type ls -a to list all the directories and locate your file directory.
- Type ./configure and press ENTER key
- Type make and press ENTER key.
- Type make install and press ENTER key.
(c) USING THE UBUNTU SOFTWARE CENTER
Open Ubuntu Software Center
Type java in the search
Look for Java SE 7 and click 'install' to install it.