Commands used in the session:
compile individual source files in the current folder
D:\code\src~ javac customer.java
D:\code\src~ javac app.java
Compile multiple source files in the current folder at once
D:\code\src~ javac customer.java app.java
Compile all the source files in the current folder at once
D:\code\src~ javac *.java
Run Java class (having main method)
D:\code\src~ java App
Compile java source code to a different folder
D:\code\src~ javac -d ../bin *.java
Compile a source code from different folder
D:\other~ javac ../code/hello.java
Run a java class in a different folder
D:\other~ java -classpath ../bin App
Create a jar file containing multiple classes c-create v-verbose f-specify archive file e-entry point
D:\code\bin~ jar cvf MyApp.jar App.class Customer.class
Create a jar file containing multiple classes with main/entry class specified
D:\code\bin~ jar cvfe MyApp.jar App App.class Customer.class
Run a jar file containing a main/entry class
D:\code\bin~ java -jar myapp.jar
On this page of the site you can watch the video online Java Made Simple - Build Java Applications in Command Line Environment with a duration of hours minute second in good quality, which was uploaded by the user Aurora Computer Studies 28 May 2020, share the link with friends and acquaintances, this video has already been watched 221 times on youtube and it was liked by 7 viewers. Enjoy your viewing!