How to RUN JAVA program in Mac OS Terminal (CMD) .

Published: 28 June 2019
on channel: Programming Points
75
4

FIRST go to Sublime text or any text Editor, then write JAVA program (CUI/GUI) any of them if you can, then Save as .Java EXTENSION anywhere of the Mac eg desktop, music, in any folder.
Then open terminal and type cd Name of the location eg :- cd Desktop, Press return/Enter
Now type javac file name with extension, press enter after few second if no error found then type Java classname eg:- java Hello (without extension). The output will be shown.


On this page of the site you can watch the video online How to RUN JAVA program in Mac OS Terminal (CMD) . with a duration of hours minute second in good quality, which was uploaded by the user Programming Points 28 June 2019, share the link with friends and acquaintances, this video has already been watched 75 times on youtube and it was liked by 4 viewers. Enjoy your viewing!