Jar command to wrap the folder of class files

Source: Internet
Author: User

The jar package is missing because the spring source code is imported into eclipse.

So download the spring released Spring-core jar package from the MAVEN repository.

To facilitate understanding of the directory structure, use the tree command:

tree [/F] >tree.txt

/F, full subdirectories/files are generated

├─pac_jar_cglib
│└─org
│└─springframework
│└─cglib

└─pac_jar_objenesis
└─org
└─springframework
└─objenesis

Select the folder with the green background, hold down the SHIFT key, and right-click here to open cmd. Enter the jar CVF Xxxxxx.jar * in the Command line window

If you enter command line cmd from the "pac_jar_objenesis" folder, execute the following command

jar CVF Spring-objenesis-repack-2.4.jar *

PS: where * All files in the directory are packaged into the jar file

It will generate Spring-objenesis-repack-2.4.jar

Follow the path of the missing jar package in Eclipse, the new jar that the backrest is wrapped in, the item is refreshed, and the problem is resolved.

Jar command to wrap the folder of class files

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.