First, preparatory work
Tools: Jd-gui anti-compiler toolDownload Address: https://github.com/java-decompiler/jd-gui/releasesHere I use the Mac, so directly download the latest version of Jd-gui-osx-1.4.0.tar as a demo, window system can download Jd-gui-windows-1.4.0.zip Two, operation steps
1, will download the finished tar file double-click Decompression Open, and then double-click Jd-gui.app Open Software, the interface is as follows
2, click on th
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
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
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
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 ()
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
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
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
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?
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-file-dfile= want to ad
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
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
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
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.
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 mai
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
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.