Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> Development >> Languages >> Java >> How to use .jar file to execute a project with multiple class files

1. compile all your .java files 2. identify which class holds your main() eg. XYZ.class 3. create a manifest file (eg. named manifest with no extensions) with a line specifying this class that holds main. Put a carriage return at the end manifest -------- Main-Class: XYZ 4. create the jar file run.jar specifying the manifest file and the class files to add to the jar > java -jar cmf manifest run.jar *.class 5. to run > java -jar run.jar
[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]