JavaDoc and Jar1, Javadoc Comment Tag / ** * / format, Java Tool, Javadoc, and Jar1, Javadoc Note: Killer class
* @ Author killer * @ version 1.00 * / where
means a wrap, but there is @ flag Waiting automatically wraps to Killer constructing methods / *** This is the constructor of the Killer class * @ param name killer's name * / where @Param User Instructions: Javadoc -d Killer -Version - Author killer.java-d is used to explain that it is back to the location of the file -Version and -author's description request to join the version information and the author information, and the comment text is starting in front of it. .private annotations generally do not release because it is related to the internal structure of your class but if you want to release, you can add -Private parameter 2, jar1.jar cf test.jar Test generates a Test.jar file in the current directory, if already The existence of then override it -c Creating a new document -f specified document name Test is to operate the Test folder 2.jar tf test.jar lists only the Test.jar file list 3.jar Xf Test.jar Unzip Test.jar files to the current directory 4. Note question If the directory is as follows: ---- C ---- myjava ---- TEST1 ---- TEST1.CLASS ---- TEST2 - --- Test2.class needs to compress them into myjava.jar running C:> jar cvf myjava.jar myjava / * will get the directory structure The following MYJAVA / Myjava is obviously not what we want to correctly use correctly C: / myjava> jar cvf myjava.jar *