How to compile and run Java in terminal linux ubuntu/linuxmint/debian

Video is ready, Click Here to View ×


How to compile java in linux can for ubuntu/debian/linux mint use command line in linux terminal if the windows operating system is a command prompt, this videos i’m using nano command to write code, you can use linux command on terminal like nano editor with typing :
nano classname.java and then to save ctrl + o, and exit ctrl + x.
for example :
nano javanano.java

class javanano {
public static void main(String[]args){
System.out.println(“Hello java with nano”);
}
}

save and exit…

1 Comment

Leave a Reply

Your email address will not be published.


*