Java Tools Javadoc and jar a dangerous

Source: Internet
Author: User
Javadoc and Jar
of ADO Java Tools

1,javadoc


annotation Mark/**/* Format


such as:


/**


*title:killer class <br>


* @author Killer


* @version 1.00


*/


where <br> indicates a line break, but a @ flag wraps automatically


down the killer construction method annotation


/**


* This is the Killer class constructor


* @param name Killer


*/


@param < parameter name >< parameter description >


Use instructions:


javadoc-d Killer-version-author Killer.java


-D is used to indicate that it follows the location where the file is stored


-version and-author documentation require adding version information and author information


also has a comment on which line to annotate so that the annotation text starts on its first line.


private annotations are generally not published because it concerns the internal structure of your class but you can add-private parameters if you want to publish


2,jar


1.jar CF Test.jar Test


generates Test.jar files in the current directory, overwriting it if already exists


-C Create a new document-F Specify document name test to operate on the test folder


2.jar TF Test.jar


Lists all directories and file names for Test.jar files only


3.jar XF Test.jar


unzip Test.jar files to the current directory


4. Attention to problems


If the directory is as follows:


+----C


+----Myjava


+----Test1


+----Test1.class


+----Test2


+----Test2.class


need to compress them into Myjava.jar


run C:>jar cvf myjava.jar myjava/*


will get the directory structure as follows Myjava/myjava


obviously not we want the result and we can't use it properly


Correction Method


C:\myjava>jar CVF Myjava.jar *








Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.