How to install java and Run Java in Linux | 2021

Published: 15 May 2021
on channel: CyberFizz
54
3

From Terminal

-- sudo apt-get install openjdk-11-jdk

Write a java program and save the file as filename.java

Now to compile use this command from the terminal

-- javac filename.java

If everything works well then a new "filename.class" file should be created.



To run your program that you've just compiled type the command below in terminal:

-- java filename


On this page of the site you can watch the video online How to install java and Run Java in Linux | 2021 with a duration of hours minute second in good quality, which was uploaded by the user CyberFizz 15 May 2021, share the link with friends and acquaintances, this video has already been watched 54 times on youtube and it was liked by 3 viewers. Enjoy your viewing!