Onejar
Topics
- Motivation of One-JAR
- One-JAR Overview
Motivation of One-JAR
Java Runtime Environment Basics
- The Java Runtime Environment supports running a Jar file using the following syntax:
- java -jar jarname.jar
- The only requirement of the jarname.jar file is that it contains a manifest attribute with the key Main-Class a main class to run, for instance in the METAINF/MANIFEST.MF file:
- Main-Class: com.mydomain.mypackage.Main
You must have an active subscription to download PDF and Lab Zip of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.