Using Java Using Java - AS Nida
Using Java Using Java - AS Nida
Using Java Using Java - AS Nida
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Creating a Jar File (<strong>Java</strong> Archive)<br />
We can zip all the classes into a jar file using the jar<br />
program<br />
jar cvf company/hr/*.class company/report/*.class<br />
We can also store the application in a jar file by<br />
creating a file call “Manifest.mf” which contains the<br />
entry point of the application<br />
Main-Class: company.hr.MyMainClassName<br />
Executing an application in a jar file<br />
java –jar application.jar<br />
Copyright © 2006 Pramote Kuacharoen – All rights reserved.<br />
The CL<strong>AS</strong>SPATH Environment<br />
The JDK will look at the CL<strong>AS</strong>SPATH Environment to<br />
determine where to look for top level packages<br />
Copyright © 2006 Pramote Kuacharoen – All rights reserved.<br />
11<br />
12<br />
6