Now almost all development projects are used by MAVEN projects, but sometimes you can use the diff gate or the new jar may not be able to search the Web in the Pom file configuration should be how to write, so write down this blog.For example, I now want to join the Aaa.jar this package open cmd, enter the command inside MVN install:install-
We often read some resource files in the code (compared to slices, music, text, etc.). These simple processes are of course not problematic when running alone. However, if we make the code into a jar package, even if the resource files are packaged together, these things will not be found. Take a look at the following code://Source code 1: PackageEdu.hxraid;ImportJava.io.*; Public classResource { Public voidGetResource ()throwsioexception{
file.
ASM ~ Hibernate uses this code to generate library enhancement classes at runtime (used in conjunction with the Java reflection mechanism). ASM bytecode library, cglib. jar package dependent packages. Required jar packages.
Aspectj ~ Aspect (aspect) is another name for cross-cutting concerns. This mechanism can be used to specify the cross-concern in a m
1. Import into Eclipse, modify and then export the jar2.jar CF File.jar *.class package all class files in the current directory into a new jar file3. For patches. There have been jars for example: a bug was found. Then, to modify one of the classes, you need to package it in a second, for this case, just put the corresponding class in the specified directory for example: File.jar has a class demo fix bug n
Activation ~ Jar packages related to javaMail should be added to lib together with mail. jar (mail. jar and activation. jar) When javaMail is used. The jar package is responsible for the data source and type of mail.
ApacheActiveMQ ~ Apache is the most popular
Use aspectjweaver to report "agent library failed to init: instrument" "Error opening zip file or JAR manifest m, aspectjweaver. jar"
This is just a small experience. I do not know why. When I added the Kieker monitoring feature in Ant build. xml today, I encountered this problem several times, and it was inexplicable:
Generally, an error is similar to this:
Erro
This script was found on GitHub stub.sh :#!/bin/shMyself= ' which"$" 2>/dev/null ' [$?-GT 0 -A - F "$"] myself="./$"Java=javaifTest-n"$JAVA _home"; ThenJava="$JAVA _home/bin/java"fiexec "$java" $java _args-jar$MYSELF "[email protected]"Exit 1For example, if you have a java -jar jar package that you can execute app.jar , just execute:cat stub.sh app.jar > app.ru
One way to do this is to set the classpath in the Mainfest file in the jar file you want to execute. It's easy to write the wrong name. Add the. jar file in the delete Lib folder at any time because you need to modify the Mainfest file
1, we need to increase the configuration file jar needs, select the project's src directory, right mouse button, select [New]-select [Folder].2. Enter Meta-inf as the directory name and click [Finish].3, select the directory you just created, right mouse button, select [New], select [File].4, input MANIFEST. MF, select [Finish].5, edit the
1. Functional Differences
You can choose whether to compress the JAR file, which is not included in the plug-in;
The plug-in provides the "Class-path" editing function, which is not included in the plug-in;
Select the file to be compiled: the built-in choice is the file before compilation, and the plug-in selects th
The reason to export the runnable jar is because we want to export the referenced jar package with this project, so do not select the Jar fileChoose File/export ... Then java/runnable the jar file and select the class with main ()
Java javacsv. jar application for csv file operations, csvjavacsv. jar
Csv files are separated files. If you use java I/O streams for writing, it is troublesome. Here we provide you with a jar package of javacsv, which is very convenient for you to operate csv files.
: Https://pan.baidu.com/s/1i46ErFB
So how to use it?
In the Eclipse plug-in development, there is a scenario where you need to set up a resource folder in a plug-in project that contains files such as profiles and templates. The problem that this article describes is that the resource files in the resource folder cannot be accessed after the plug-in project is packaged and published.Problem Recurrence:There are template resource folders at the root of the plug-in project, which need to be accessed when the plug-in is running. In plug-in developmen
in the development process, we often encounter the situation of reading the configuration file, for the configuration file read, depending on the environment and so on, and so on, in general, if the use of relative/path from a non-jar package, relatively simple, it is not a statement, and in manycase, we need to pack our class into a
Package the class into a jar fileFirst, look at the source code of Mainactivity.java and Func.java respectively.Now to package the Func.java into a jar package, here's how:A, right-click Func.java->export->java->jar fileb, select the class to be packaged in the select the resources to export, and note that if this class has calls to other dynamic/static libraries
First step: Recommended manual Eclipse plugin FatjarInstallation method: 1::http://downloads.sourceforge.net/fjep/net.sf.fjep.fatjar_0.0.27.zip?modtime=1195824818big_mirror= 0 2: Will extract the folders in the plugins (net ... Copy to the plugins directory in the Eclipse installation directory, and then restart Eclipse.How to use: 1: Right-click Project may not find Fatjar packaging method, here you can right-click---export----others---found Fatjar2: Configure the
Java PDF file implementation method [attached PDFRenderer. jar download], export PDFRenderer. jar
This example describes how to implement PDF files in java. We will share this with you for your reference. The details are as follows:
In a recent website, you need to upload a pdf file, display a pdf page, and click the p
XSLT processing package used to convert an XML document into an HTML document, a text file txt, or an XML document in another format. It implements the interfaces of XSLT1.0 and XPath1.0, which can be invoked at the command line, or in Applet,servlet, or as a module of other programs.xmlresolver~ to parse external DTDs, entities, and schemas.Xmlschema~, as the name implies, is used to parse XML schemas.Xml-apis.jar with xercesimpl.jar~ These two
Android sdk manager cannot be started because the swt. jar file is not specified. androidswt. jar
The appearance of this problem actually has nothing to do with the swt. jar file. Finally, the author finds the solution through Baidu at http://www.aichengxu.com/view/39361.
In the development process, we often encounter reading the configuration file, for the configuration file read, depending on the circumstances, and so on, under normal circumstances, if the use of the relative/path from the jar package, relatively simple, not tired, and in many
case, we need to pack our class into a 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.