Since 1998, Alden Hosting is a provider of business-class Web hosting to small- and medium-sized businesses, providing professional, efficient, and reliable services. We provide everything you need to get your business on the Internet. We make it easy and affordable. Alden Hosting's feature-rich hosting plans and excellent 7 days a week toll-free customer support empower you to efficiently build a Web business that will grow with your changing needs.
affordable private tomcat web hosting services MainFlow_wide @media print } h3, h4, h5 #ToggleLeft /t function leftBar() { var nameq = 'tutorial_showLeftBar=' var cookies = document.cookie.split(';'); for (var i = 0; i Download the JDK Search the Tutorials Hide the TOC Trail: Deployment Lesson: Packaging Programs in JAR Files Section: Working with Manifest Files: The Basics Packaging Programs in JAR Files Using JAR Files: The Basics Creating a JAR File Viewing the Contents of a JAR File Extracting the Contents of a JAR File Updating a JAR File Running JAR-Packaged Software Working with Manifest Files: The Basics Understanding the Default Manifest Modifying a Manifest File Setting an Application's Entry Point Adding Classes to the JAR File's Classpath Setting Package Version Information Sealing Packages within a JAR File Signing and Verifying JAR Files Understanding Signing and Verification Signing JAR Files Verifying Signed JAR Files Using JAR-related APIs The JarClassLoader Class The JarRunner Class Home Page > Deployment > Packaging Programs in JAR Files « Previous • Trail • Next » Setting an Application's Entry Point If you have an application bundled in a JAR file, you need some way to indicate which class within the JAR file is your application's entry point. You provide this information with the Main-Class header in the manifest, which has the general form: Main-Class: classname The value classname is the name of the class that is your application's entry point. Recall that the entry point is a class having a method with signature public static void main(String[] args).
affordable private tomcat web hosting services After you have set the Main-Class header in the manifest, you then run the JAR file using the following form of the java command: java -jar JAR-name The main method of the class specified in the Main-Class header is executed. An Example We want to execute the main method in the class MyClass in the package MyPackage when we run the JAR file. We first create a text file named Manifest.txt with the following contents: Main-Class: MyPackage.MyClass Warning: The text file must end with a new line or carriage return.
affordable private tomcat web hosting services The last line will not be parsed properly if it does not end with a new line or carriage return.We then create a JAR file named MyJar.jar by entering the following command: jar cfm MyJar.jar Manifest.txt MyPackage/*.
affordable private tomcat web hosting services
Web Hosting Links Portal
Web Hosting
JSP Hosting
Tomcat Hosting
MySQL Hosting
servlets Hosting
Web Site Hosting
JSP Hosting
Tomcat Hosting
MySQL Hosting
servlets Hosting
Web Site Hosting
JSP Hosting
Tomcat Hosting
MySQL Hosting
servlets Hosting
Web Site Hosting
JSP Hosting
Tomcat Hosting
MySQL Hosting
servlets Hosting
JSP Web Hosting
JSP Web Hosting
Servlet Web Hosting
Servlet Web Hosting
College Coach Deb Links
College Coach Deb
College Coach Deb Portal
Alden Trading
Alden Shoes
ebootery
Minnetonka Moccasins
myMoccasins
Protecting Your Assets Portal
Offshorelaw links
Offshorelaw
unemployment benefit services
unemployment benefit services
unemployment benefit services
Menu Paper
Menu Paper
Dancing Waters
Dancing Waters
affordable private tomcat web hosting services