Sometimes we need to check the source code of the referenced jar package, which can be achieved through simple configuration.
Prerequisites: Download the source code of the jar package to your computer.
Example: to view the source code of the struts2-core-2.2.1.1.jar as an example.
Download Struts-2.2.1.1 with source code from the Internet.
When a str
How to package third-party Jar packages and third-party jar packages
When a third-party Jar package is included in the project, the Jar package that is normally packaged cannot contain the third-party Jar package. In this case, you can use net. sf. fjep. fatjar_0.0.31.
Example1. Dependencies are as follows:To install the jar package to the local Warehouse command:MVN install:install-file-dfile=d:\quartz-terracotta-bootstrap-2.2.2-snapshot.jar-dgroupid= Org.quartz-scheduler.internal-dartifactid=quartz-terracotta-bootstrap-dversion=2.2.2-snapshot-dpackaging=jar--DgroupId and DartifactId constitute the coordinates of the jar packa
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 () to run, choose extract required libraries into generated
I used eclipse packaging, but reported that there was no master list attribute error in the Activemq.jar when the cmd window was executed.
Search on the Internet, this is related to the MANIFEST.MF file, the file does not define the main method in the class path, the use of good pressure to open the jar package, and sure enough. There's only one line inside.
manifest-version:1.0
You need to add Main-class. In this example, add the following:
Main-
Java packaged into Jars
JAR-CVF [Name of jar package] [file to be packaged]
Execute the Main method in the JAR package
Java-jar ****.jar
Always runs the specified main method after execution, and if there are multiple main methods in the
1. The jdom. jar and rome. jar packages are required.2. Create a project. The content of web. xml is as follows: The code is as follows:Copy code Xmlns = "http://java.sun.com/xml/ns/javaee"Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"Xsi: schemaLocation = "http://java.sun.com/xml/ns/javaeeHttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd> 3. Create an index. jsp wit
Manually add the jar package to maven and the jar package maven
Not to mention nonsense. First, I will explain the following:
1. log on to the system
2. Follow the arrow and box until the Select Artifact (s) to Upload... button
3. Click Select Artifact (s) to Upload... and Select the local file to be uploaded. the Filename and Extension text boxes are automatically filled in.
4. Click Add Artifact to
http://blog.csdn.net/zhangdaiscott/article/details/6911640method one. MVN assembly or MVN package (a jar package) packs the files of a dependency package and its own project as a jar package (this is not supported for spring projects)
[HTML] View Plain copy
The same input jar [*.jar] is specified twice error after upgrading to a higher version of the Android SDK, resulting in confusion failure unable to package a new version of the Proguard package appAfter a day of tossing people to collapse, and eventually I found a solution. Here's how to fix it:
Open Proguard-project.txt
Insert # into #-libraryjars Xxxx.jar before all-libraryjars or delete directly
In NetBeans, you execute clean and Build to get the jar fileTo add a resource to a jar, first open the jar with the compression software and then drag the resource into the current archiveUse class.getresource (String) to refer to a resource in a jarFor exampleHowever, after you execute run in the IDE, you cannot reference the resource because Class.getResource (
Ext.: https://www.cnblogs.com/Think-007/p/7852589.htmlPersonal development, there is no need to build a nexus, so for us to use Spring boot development project, we will introduce the local jar package, for example, I will build a Lib package in the root directory, and then put the local jar inside, add to the Classpath reference.Then you will find that when we hit the j
If you have generated a Zh.class file with the Zh.java fileIf the path to Zh.class is Bin/com/zhang/zh.classA MANIFEST.MF file is placed in the bin directory with the following file contents:manifest-version:1.0 Created-by:1.5.0_06 (Sun Microsystems Inc.) Main-class:com.zhang.zhNote that the Main-class heel must be the full path to the class that contains the main method.Then use the command to go to the bin directory to execute the jar CVMF zh.jar MA
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 file and use it, and then we'll find that if we didn't take that into account, it might
From: http://blog.sina.com.cn/s/blog_4fcc6ef20100vzo3.html
It took me a few hours to get JDK today. After installation, I found that there are no tools. jar and DT. Jar packages in JDK \ Lib. I found many solutions on the Internet, but they did not solve the problem. Finally, we can see an essential solution. The cause of this problem is that JDK and JRE are placed in the same directory during JDK installa
In some special cases, multiple jar packages need to be packaged into a single jar file. If you use MAVEN, you can add the following plugins: Build> Plugins> plugin> Artifactid>Maven-assembly-pluginArtifactid> Configuration> Archive> Manifest> to replace the
Add a local jar package to maven and a jar package to maven
Today, I met a jar package that is not in the mavan warehouse, so I can only add a local jar package. It took a lot of time to find information and finally OK. Therefore, it is recorded here.
1. For the first time, you can use
However, when running jetty and
1. Use jar to packageCode
Jar-cvfm my. Jar myframe. config myframe
Explanation: My. jar is the JAR file to be generated in the current directory. Its name can be obtained by itself, but its suffix must be jar.
Myframe. confi
Use the Eclipse plug-in fat jar
1. download and install the plug-in fat jar
:Http://fjep.sourceforge.net/
If you install the Eclipse plug-in, I believe everyone is familiar with it.
If the installation is successful, you can see the fat jar preferences option in window-preferences in the eclipse option bar.
2. Right-click-export-other-fat
Effect Chart:
This pair of frames is completely inherited, modeled after Alertdialog, only to achieve a custom effect.In addition, SetIcon is not implemented because most of the dialog boxes in the iphone have no icons.Accessories include examples, jar packages, jar package source.File Introduction :Aiphonedialogtest.rar This is the example projectNote In use to import the
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.