Skip to content

Slavik97/simple_java_app_kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple 5-mins kata which can help you to master the basics of java programm creation using CLI

$ javac -d out src/SimpleMain.java
java -cp out SimpleMain
Good start
$ jar -cvf app.jar out    # wrong, it includes the out folder to jar
$ jar -cvf app.jar -C out/ .    # correct
$ java -jar app.jar
no main manifest attribute, in app.jar
$ java -cp app.jar SimpleMain
# create a file with manifest.txt as a name and specify there Main-Class attribute
$ cat manifest.txt
Main-Class: SimpleMain
$ jar -cvfm app.jar manifest.txt -C out/ .
$ java -jar app.jar
Good start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages