I know that latest official openJDK is java version "1.7.0_25". But there is java version "1.7.0_40" in development. Does anyone know how to install openJDK "1.7.0_40" on an Ubuntu machine?
If you want openJDK 1.7.0_40 for 32-bit Ubuntu then do as
If you want openJDK 1.7.0_40 for a 64-bit Ubuntu then do as
Then make a directory.
Then move the downloaded tar to above created directory with
similarly you can move 64-bit also if you want.
Then cd that directory
Then untar the archive with
Then paste these line one by one , and these are for intimating Ubuntu that this is your default java and path of it.
Then update your system profile , open it with
then paste these lines
Now save & close.
Then reload your profile with
Then we are done. check your java version.