Java -version You will see a result like this: To check the installation use the command To install OpenJDK 8, run the following command: Sudo apt install default-jdk Next, check the installation of the JDK by checking the version of javac, the Java compiler: To install the JDK we execute the following command which also executes the JRE installation: To compile and run some specific Java-based programs, you may need the Java Development Kit (JDK) in addition to the JRE OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing) It allows you to run almost any Java software.Ĭheck the installation with the following command: This command installs the Java Runtime Environment (JRE). If Java has not been installed, you will see a similar result:Ĭommand 'java' not found, but can be installed with:Īpt install openjdk-8-jre-headless Next, run the command to install **OpenJDK**: Sudo apt update Then you should check if the installation of Java has been done before: This package installs version 10 or 11 of OpenJDK. By default Ubuntu 18.04 package includes Open JDK (open source version of JRE and JDK). We will use the version included in the Ubuntu package for installation. Any operation that exceeds the program's established authority (e.g., attempting unauthorized access to data or connecting to another computer) causes an immediate interruption. The new programming language was originally called Oak (James Gosling) and was developed for consumer electronics, but later it was renamed Java and began to be used for writing applets, applications and server softwareĪ peculiarity of Java technology is a flexible security system due to the fact that the program execution is fully controlled by a virtual machine. Java is an object-oriented programming language developed by Sun Microsystems since 1991 and officially released on May 23, 1995.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |