How To Compile And Run Java Program In Ubuntu Linux

preview_player
Показать описание
How to compile and run a java program using openjdk on ubuntu GNU linux.

1) Open the terminal using Ctrl-Alt-t

2) Install open JDK by typing
sudo apt-get install openjdk-8-jdk

3) Enter the name of the text editor followed by the name of the file:

4) Type in the program and save

6) Finally enter java followed by the class which contain the main function to run the program
java ClassName

How to Compile Java Program in .class file or byte code and run it through terminal or cmd in linux or windows.

To Compile the Java Program :

To Run the program :

java ClassFilename
Рекомендации по теме
Комментарии
Автор

🤔I think his keyboard wants some kindness;
Specially his ENTER key.

yashrajshinde
Автор

Thanks a lot for the quick explanation!

affonsoscarante
Автор

great video concise to the point no fluff

TheJibbsmcgee
Автор

Thank you so much it helped me in execution.

pashamanusha
Автор

good vid. *1:00* He sounds like hes wacking his keyboard

danielmattos
Автор

1:08 what were you doing there? either u were hitting keyboard or changing some configuration, please tell me.

solomonleo
Автор

Good video, thank you. However the sound of typing on the keyboard is way too loud, and it's irritating. Your voice should be more audible then the typing. Thank you.

danwest
Автор

Sorry for saying this but are you fighting with keyboard 😂
BTW tnx for awesome video.

bababoimamaboi
Автор

Bro please avoid key board sounds in next video

immaneniaditya
Автор

man why are you fighting your keyboard

uShabangu
Автор

I'm just thinking to just print a line of HELLO WORLD we have to go through these all steps 🚶‍♂️

rakeshkumarparida
Автор

That keyboard sounds like it's made from an oak tree...

coyotemoon
Автор

It sounds like you type with a closed fist

mayanmaster
Автор

Your keyboard typing sound irritates me

AmanYadav-ryxr