onlinecode

Install Oracle JAVA 11/14 on Ubuntu 20.04/19.04

Install Oracle JAVA 11/14 on Ubuntu 20.04/19.04

In this post we will give you information about Install Oracle JAVA 11/14 on Ubuntu 20.04/19.04. Hear we will give you detail about Install Oracle JAVA 11/14 on Ubuntu 20.04/19.04And how to use it also give you demo for it if it is necessary.

In this post, we’ll see how we can install Oracle Java 11 LTS (Long Time Support) and Java 12 on Ubuntu 20.04 (or also Ubuntu 19.04).

Java 11 is the LTS Version

Java 11 is the LTS version of Java. As Java 8 has ended support in Junuary 2019, companies will be upgrading their projects to current LTS version.

Java 14 is the latest version which has brought many new features and enhancements.

It’s not recommended to use Java 14 in production but you can use it for hobby projects or to experiment with the new features.

How to Install Java 11 LTS on Ubuntu 19.04?

Open a terminal and start by adding the Linux Uprising PPA, which contains Oracle Java 11 (LTS) and 12 installers for Ubuntu, Linux Mint and Debian,using the following command:

sudo add-apt-repository ppa:linuxuprising/java

On Ubuntu 19.04, you don’t need to update your system packages using:

$ sudo apt-get update

Finally, you can install Java 11 LTS using:

$ sudo apt-get install oracle-java11-installer

You need to accept the license (press Tab to highlight OK and hit Enter):

Next, choose Yes:

Let’s make it the default version in our system using:

$ sudo apt-get install oracle-java11-set-default

You can check your installed version of Java using:

$ java -version

You can uninstall Java 11 from your system using:

$ sudo apt-get remove oracle-java11-installer

Installing Java 14 on Ubuntu 19.04 Using a PPA

You can find the packages of Oracle JDK 14 for Ubuntu from the Linuxuprising PPA repository.

Open a new terminal and run the following command to add this PPA to your system:

$ sudo add-apt-repository ppa:linuxuprising/java

Enter your password when prompted and hit Enter.

Next, you need to run the following command to update your system repositories:

$ sudo apt update

Finally, you can install Java 14 on your system by running the following command:

$ sudo apt install oracle-java14-installer

You can set Java 14 as the default version in your system using oracle-java14-set-default:

$ sudo apt y install oracle-java14-set-default

Installing Java 14 Without a PPA on Ubuntu 19.04

You can also install Java 14 on your system without using a PPA.

Go to the Oracle official website and download the deb package for JDK 14.

Next, open your terminal and navigate to where you have downloaded the deb package and run the following command:

$ sudo dpkg -i jdk-14.0.0_linux-x64_bin.deb

That’s it! You have installed Java 14 on your Ubuntu 19.04 system.

See also 

Change default configuration name of Laravel's created_at and updated_at

In this post we will give you information about Change default configuration name of Laravel's created_at and updated_at. Hear we will give you detail about Change default configuration name of Laravel's created_at and updated_atAnd how to use it also give you demo for it if it is necessary.

In this Laravel PHP Tutorial, I will let you know the use of created_at and updated_at column in a database table.

By default, Eloquent automatically maintain the date time value in created_at and updated_at column on your database table. If you do not want for eloquent to maintain created_at and updated_at columns then disable it by adding following property in your model class :

  1. class Member extends Eloquent {
  2. protected $table='members';
  3. public $timestamps= false;
  4. }
class Member extends Eloquent {

 protected $table = 'members';

 public $timestamps = false;

}

If you want to map Laravel's timestamp from created_at to created_on and updated_at to modified_on then you can override const on your model in following way :

const CREATED_AT = 'created_on';
const UPDATED_AT = 'modified_on';

Now Eloquent will take care of the column "created_on" and "modified_on" on your database table.

How to disable created_at and updated_at timestamps in Laravel Model?

Try this..

Hope this code and post will helped you for implement Change default configuration name of Laravel's created_at and updated_at. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Conclusion

In this post, we’ve seen how to install the latest Java 14 version from Oracle in our Ubuntu 20.04 system. These methods are also valid for Ubuntu 19.04 systems.


Hope this code and post will helped you for implement Install Oracle JAVA 11/14 on Ubuntu 20.04/19.04. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Exit mobile version