java -jar <jar-file-name>.jar
jar cvf example.jar *
For Linux:
java -jar <filename>.jar
#Run jar from cmd
java -jar <jar-file-name>.jar
#Run spring boot app
mvn spring-boot:run
javac -cp "<File-Path>.jar;." <filename>.java
java -cp "<File-Path>.jar;." <filename>