1. A JAR is just a ZIP package that can be unzip, and the possible path of unzip files is exactly the same.
2. If the JAR package contains exactly the same file, the ZIP add will not be used and a zip error will be reported: zip file structure invalid
3. Add classes to a JAR package, such as classes from the compiled classes, go to the classes directory and use the command zip-r your. Jar./*
4. The FAT JAR packaged with assembly may not contain its own classes, so use the methods in 3 to ensure that the JAR contains its own classes
2. If the JAR package contains exactly the same file, the ZIP add will not be used and a zip error will be reported: zip file structure invalid
3. Add classes to a JAR package, such as classes from the compiled classes, go to the classes directory and use the command zip-r your. Jar./*
4. The FAT JAR packaged with assembly may not contain its own classes, so use the methods in 3 to ensure that the JAR contains its own classes
Read More:
- How to select the jar package version for Maven package when the jar package versions referenced by multiple modules are inconsistent
- [solution] the resource file cannot be found in the jar package of Java
- How to turn your project into a jar package in idea
- Failed to get the resources path in the jar package, reporting an error null pointer
- Idea introduces dependency and starts jar error in opening zip file
- Does the version of idea2020.1 import mybayis jar package or report an error? Error: (4,28) Java: package org.apache.ibatis.io does not exist
- The introduction of third-party jar package in mavn project results in classnotfoundexception
- Failed to import package with error: couldn’t decompress package
- Update project manually_ Solution of too large jar package in springboot
- Tomcat was unable to load Maven’s jar package
- When Maven hits the jar package, an error is reported when executing install, and the symbol cannot be found in a line
- Error while importing package: couldn’t decompress package
- The spring boot project directly replaces the referenced jar package
- The shell runs the class file and imports the jar package that the class depends on
- Maven compilation error: package does not exist jar package does not exist
- Error in dex2jar decompilation apk error.zip The solution of
- Depending on the custom component jar package, unable to read meta data for class appears after startup
- Mybatis idea environment integration jar package
- The remote port occupation of Linux startup jar package script reports an error
- Maven’s jar package conflict; Maven’s introduction