Original: https://blog.csdn.net/lw_power/article/details/52524610
1th Step: Create folder, copy Jar package
Create a folder in your Gradle project called "Libs" (the name can be defined by itself, not necessarily the name), and copy your local jar pack into this folder.2nd Step: Write Build.gradle core profile fragment
Add the following code fragment to the Gradle core configuration file Build.gradle:
Scenario One: The export feature that comes with eclipseStep 1: Prepare the master manifest file "MANIFEST." MF ",Because it is a Java project that refers to a third-party jar package, a custom configuration file, MANIFEST.MF, is required to create the file MANIFEST.MF under the project, which reads as follows:Manifest-version:1.0class-path:lib/commons-codec.jar Lib/commons-httpclient-3.1.jar Lib/commons-lo
) {System.out.println ("Hello, World!");}}At the time of the. jar making you must switch the path to the Hello.java folder (. jar file to be created in DOS (Windows platform)), that is, the MyjavaRun the following command to include all content under the current folder in the. jar file.C:\java\myjava>jar CF Hello.jar.D
Convert the Jar file to the exe installation file, and install the jar file.
After checking on the network and using the exe4jtool for real-time conversion, the basic steps of the software are as follows:
1. you need to know whether the target file is 32-bit or 64-bit. If the generated file is 32-bit, you need to use a 32-bit jre. If the generated file is 64-bit, A 64-bit jre is required.
Figure 1
Select 3
Convert the Jar file to the exe installation file, and install the jar file.
In the past few days, my girlfriend asked me to help her develop a tool for exporting Excel files on the Windows platform. Considering the time problem, I chose the most skilled language Java. Hosts file.
After checking on the network and using the exe4jtool for real-time conversion, the basic steps of the software are as follows:
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: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 with the following content:
The Code is as f
And you share an Eclipse plugin, for class file view, easy to develop.The installation steps are as follows:Tool Pack: http://download.csdn.net/detail/wangyonglin1123/8485153Click Finish to wait for the installation to complete. After the installation is complete, the following settings are required:Once setup is complete, you can enter the appropriate class file when you click on the appropriate method in development.Eclipse integrated jar for easy v
The third-party jar is referenced when the java project is compiled into a jar package. How can we solve this problem?
A lot of Web projects have been done, but we are unfamiliar with pure java projects. Today, during the development of the project, we have a need to put the java project on the linux system and run it, of course, this javaSE project includes the main method. We know that after writing the J
How to modify the content in the Jar in Java, and modify the content in the Jar in JavaI. Summary
I haven't written a blog for a long time. I changed my company before. It means the work is more effective, but it is a pity that there is no time to write articles. During this time, I encountered many problems, but I recorded them and did not take the time to study and solve them. However, this problem has ca
Transferred from: http://www.ibm.com/developerworks/cn/java/j-5things13/Maven is a great build tool for Java™ developers, and you can use it to manage your project lifecycle. As a lifecycle management tool, Maven is phase-based, unlike Ant, which is built on a "task" basis. Maven completes all phases of the project life cycle, including validation, code generation, compilation, testing, packaging, integration testing, installation, deployment, and project site creation and deployment.To better u
Original: Android Project Combat (33): As under get get dependent on the three-party jar file, AAR to jarUsing the Android Studio development project, there are several ways to reference the three-party code: Jar package, class library, Gradle.build compile dependency.You'll find that many of the projects on GitHub offer only compile dependencies, but what happens when a
Error Case:When the framework jar package version used by the project is inconsistent, various errors may be reported, such as:Spring-core uses 4.2.4-release version, while Hibernate-core may report when using 5.2.11.Final, transaction turn-On Error, Org.hibernate.Session.getFlushMode () Lorg/hibernate/flushmode and other errors!Analysis Reason:Because the spring version is less than Hibernate, the transaction that caused spring management does not wo
Let 's talk about spring many jar package features, whether for beginners spring novice, or Spring master, this article will bring you the knowledge of the harvest, if you are already very familiar with the content of this article as a restudying bar. Spring.jar is a single jar package that contains a full release. Spring.jar In addition to the content contained in the Spring-mock.jar, all the contents of
Although there are now a variety of intelligent IDE can generate for us jar package, war package, ear package, even with automatic replacement, deployment features. But there will be times when you need to modify or replace a jar package, a war package, a file in the ear package instead of a whole rebuild. For example, you have an ear pack that has been deployed to a client's server, it's been running for s
and a space)4, then use WinZip to compress these files into a jar format package, or press into a ZIP package, and then change the suffix named jar can also.Method Two (recommended):2. Play into the executable jar packageThe CMD action form enters the root directory of the class file, the reason is that the root direc
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.The component packages required to run Jaxrpc.jar axis Saaj.jar The method of creating point-to-points connections to endpoints, methods for creating and handling SOAP messag
Reprint: Http://hxraid.iteye.com/blog/483115?page=3#commentsWe 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:Package Edu.hxraid; import java.io.*;class Resource {
Instructions and considerations for invoking the JNI jar, invoking the third-party jar SDK and translating the instructions for the Android JAVA code V2015.6.10Reprint please indicate the source, otherwise dead family.Select "Copy link" to get the source.(* ************************************************ *)(* *)(* *)(* Design: love to eat pig head meat Flyin
The tool used for decompilation is jad.exe. The test version of the author is 1.5.8e, and WinRAR is used for compression and decompression.
Jad.exe can decompile a class file as a java file. The author's BAT can decompile a jar package into a complete source code jar package through this tool, and the generated directory can also be used in eclipse
Jad.exe Official Website: http://www.kpdus.com/jad.html)
BA
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.