Java: Edit Compile Run commands in UNIX

It is easy to create and run small Java programs using command line tools in UNIX.

Table of Contents

Edit

Read the vi tutorial for information on editing text files using vi

Read the Emacs tutorial for information on editing text files using emacs

Be sure to save the file as text only and name the file with the extension .java

Compile

javac *.java

Run

java MainClassName

Other Links