Blog

Some use full cmd command for jar file

Posted by Abhishek Dubey Blogs | Java Apr 04, 2012
This blogs contains most of the shortcut for jar file operation in command prompt.

Some use full cmd command for jar file

1-To create a JAR file  by using cmd

  command      jar cf jar-file input-file(s)

2-To view the contents of a Jar file 

 command       jar tf jar-file-name

3-To extract the contents of a JAR file

  command      jar xf jar-file

4-To extract specific files from a JAR file

command    jar xf jar-file archived-file(s)

5-To invoke an applet packaged as a JAR file

command  <applet code=AppletClassName.class archive="JarFileName.jar"width=width height=height></applet>

6-To run an application packaged as a JAR file (requires the Main-class manifest header)

command   java -jar app.jar

7-For Signing  jar with the certificate named alias in the keystore.

command   jarsigner -keystore .keystore -storepass password myjar.jar alias

 

 

post comment
     
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Join a Chapter
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Get Career Advice from Experts