Go to Project Structure > Artifacts-add > JAR > From modules with dependencies ....Exporting to an executable jar requires the main Class to be set as the entry for the JAR program.The generic tool jar can be set without the main Class.Selecting the extract to the target jar
Source: pconline Author: fivesky
Have you heard of jar files? Or a stranger! Okay, it doesn't matter. This is our first stop: Package and release.
Why is there this? First, this is the full name of jar: JavaTM Archive (JAR) file. Yes, it is the java Archive file. This is a bit similar to a zip file. Think about what it is for, compress it !? That's right. We nee
Jar Package
Use
Axis.jar
SOAP Engine Package
Commons-discovery-0.2.jar
Used to discover, find, and implement pluggable interfaces, providing some common methods for general class instantiation and single-piece life cycle management.
Jaxrpc.jar
Required component packages for axis operation
Saaj.jar
Methods for creating point-to
Jar Package
Use
Axis.jar
SOAP Engine Package
Commons-discovery-0.2.jar
Used to discover, find, and implement pluggable interfaces, providing some common methods for general class instantiation and single-piece life cycle management.
Jaxrpc.jar
Required component packages for axis operation
Saaj.jar
Methods for creating point-to
Transferred from: http://lvjun106.iteye.com/blog/1849803The maven-plugin used here is mavne-assembly-plugin.The official website is: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html1. Add this plugin to the pom.xml of the projectXML codeplugin> Artifactid>Maven-assembly-pluginArtifactid> version>2.5.3version> Configuration> Archive> Manifest> MainClass>Com.citi.kafka.KafkaConsumer1MainClass> Manifest> Archive>
Commons-logging-1.0.4.jar
You do not need to import Struts2 after it is added.
Log4j-1.2.15.jar
Hibernate does not need to be imported after it is added.
Jar file: The red is the correct jar package.
Operate the database jar
Mysql-connector-java-5.0.8-bin.jar
Struts2
The
Are you fascinated by Java, or are you welcome to enter the wonderful Java World, welcome for your own livelihood! Maybe you just said hello to everyone.
World! Or ...... OK! This is enough. Let's get started and start the journey of the magic world:
Have you heard of jar files? Or a stranger! Okay, it doesn't matter. This is our first stop: Package and release.
Why is there this? First, this is the full name of
Turn: http://www.blogjava.net/weishuangshuang/archive/2011/01/23/343400.html
Hibernate jar: hibernate3.jar. This is the core jar package of hibernate3.0. It is required. Oh, no choice. For example, the common sessions, queries, and transactions are all located in this jar file and necessary.
Cglib-2.1.3.
Hibernate
Hibernate3.jar: this is the core jar package of hibernate3.0. It is required. Oh, no choice. For example, the common sessions, queries, and transactions are all in this jar file.
Cglib-2.1.3.jar, cglib library, Hibernate use it to realize dynamic generation of Po bytecode, very core library, necessary.
ASM.
We often use compression software such as WinZip to compress files for easy transmission. In Java also provides a file compression to reduce the amount of data transmission of the class, you can easily compress the file into a zip, JAR, gzip, and other forms, gzip mainly in the Linux system under the compressed file.
The following is mainly about zip-style compressed files, and jars, gzip-type compressed f
-jar parameter setting method when running the application Classpathare you using the Java-jar parameter to run the packaged jar application and find that the application cannot find the content of the third-party class library set up under Classpath? No matter how to set the Classpath parameter is useless, always will report classnotfound error? When using Java-
Functions of Java packages
--------------------------------------------Meanings of common J2EE jar packagesActivation. jar: jar package related to javamail. When javamail is used, it should be added to lib together with mail. Jar. It is responsible for the data source and type of mail, etc.Ajaxtags-1.2-beta3.
Have you heard of jar files? Or a stranger! Okay, it doesn't matter. This is our first stop: Package and release.Why is there this? First, this is the full name of JAR: javatm archive (jar) file. Yes, it is the Java archive file. This is a bit similar to a zip file. Think about what it is for, compress it !? That's right. We need to compress the original scattere
Open the command prompt (Win2000 or run the CMD command in the running basket, Win98 is the DOS prompt), enter jar-help, then press enter (if you already have JDK or a later version on your disk) to see what:Usage: jar {ctxu} [vfm0mi] [Jar-file] [manifest-file] [-C Directory] File Name...
Option:-C. Create a new archive-T list the archived content-X expand t
Open the command prompt (win2000 or run the cmd command in the running basket, win98 is the DOS prompt), enter jar-help, then press enter (if you already have JDK or a later version on your disk) to see what:Usage: jar {ctxu} [vfm0Mi] [jar-file] [manifest-file] [-C Directory] File Name...
Option:-C. Create a new archive-T list the archived content-X expand the na
Jar Package UseAxis.jar SOAP Engine PackageCommons-discovery-0.2.jar is used to discover, find, and implement pluggable interfaces, and provides some common methods for general class instantiation and single-piece life cycle management.Jaxrpc.jar required component packages for axis operationSaaj.jar methods for creating point-to-points connections to endpoints, methods for creating and handling SOAP messag
Most Java programmers are familiar with the basic operations on JAR files. However, only a few programmers know the powerful functions of the JAR file format. In this article, the author discusses many functions and advantages of the JAR format, including packaging, executable JAR files, security, and indexing.
What is
. Simon tuffs(Simon@simontuffs.com), Independent Consultant, simontuffs.com
November 23, 2004
If you have tried to deliver a Java application as a single Java archive file (JAR file), you may have encountered the following requirement: Before building the final archive file, to expand the support JAR file (supporting JAR file ). This is not only a difficult iss
Except spring. JAR file. Spring also includes 13 other independent jar packages, each containing the corresponding spring components. You can choose to combine your own jar packages as needed, instead of introducing the entire spring. jar.
(1) Spring-core.jar this jar file
All Java developers know that JAR files are only compressed (ZIP) files containing the Java class tree. However, not everyone (including some experienced developers) understands other advantages of this file format. In this article, I will briefly introduce the JAR file format and illustrate the various possibilities that can be implemented using it.
JarIntroduction
JAR
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.