Java tip 49: how to extract Java resources from jar and ZIP files
Are you getting started with the JAR file? This new class can help you solve the problem!
Author:John D. Mitchell and Arthur Choi
SummaryPackaging a class of Java resources in a Java archive (jar) file is an excellent way to shorten the download time, enhance security, and enhance manageability
1. Copy all jar files to a temporary directory and extract all the. class files through the jar command
> JAR-XVF Xx.jar
Xx.jar must be a specific jar, cannot be *.jar, will be reported FileNotFoundException2. Delete all ja
Compiling Java code you can of course use Javac directly, but for most of your classmates it's quick to use the Eclipse editor. This article says that I use the eclipse compiled the road of execution, walk many detours, see me one by one way.Demonstrate the architecture of the systemFirst look at my directory structure:This demo code is very simple, the structure is very clear, can not be used in any production, just for demonstration. The general idea is that the Hellojar project provides class
certifications, SUC H as FIPS, for the APIs. We can accept donations via PayPal, Bitcoin, or direct transfer. If This sounds more like you, and you want to see this project continue to prosper, please visit our donations page to Hel P. thanks!Signed JAR filesFrom release 1.40 Some implementations of encryption algorithms were removed from the regular jar files at the request of A number of users. Jars with
Classes12.jar, ojdbc14.jar, ojdbc5.jar, and ojdbc6.jar are different. When using the oracle JDBC driver, are you sure you want to replace the oracle JDBC driver of different versions? The most commonly used ojdbc14.jar has multiple versions, and classes12.
Currently in learning HibernateSuddenly found that hibernate jar package, when introduced, very cumbersome, and even if there is no introduction will have problems, soSelf-organized a bit, the introduction of the jar package to sort out, so that later will forget, in order to hope to help everyone!First download the Hibernate jar Packagehttp://download.csdn.net/d
Turn from: 8227876 If you just want to know how to convert the jar to EXE, look directly at the fourth step.First, export the jar file:Select your project---then right-click on the pop-up options list---Select Export---Java---jar file---Next---browser (choose the storage path for the jar)---next---next (whichever is to
MAVEN's stuff is used for a while, but each use is somewhat vague, so summarize it.Currently the main use is in the control of the jar package principle :Locally, specifying a folder, which is the Maven repository, MAVEN downloads the jar resources you need from the remote central repository to your local, then through Maven Association, tells the jar packages t
Developing the minimum JAR package set:Activation-1.1.jarAxiom-api-1.2.13.jarAxiom-dom-1.2.13.jarAxiom-impl-1.2.13.jarAxis2-adb-1.6.2.jarAxis2-adb-codegen-1.6.2.jarAxis2-codegen-1.6.2.jarAxis2-java2wsdl-1.6.2.jarAxis2-kernel-1.6.2.jarCommons-codec-1.3.jarCommons-httpclient-3.1.jarCommons-logging-1.1.1.jarMail-1.4.jarNeethi-3.0.2.jarWoden-api-1.0m9.jarWoden-impl-commons-1.0m9.jarWoden-impl-dom-1.0m9.jarWsdl4j-1.6.2.jarWstx-asl-3.2.9.jarXmlschema-1.4.7.
This article a lot of transfer other people's place, the younger brother does the work is to everybody work summary according to this process may save everybody several 10 minutes or longer time ~
Brief process : Export jar files or apply tools to the expory with the eclipse's own, fat jar everywhere. (Tools more convenient)
Then use EXE4J to generate the. exe execution file, which should be noted here: (Su
A JAR file is a standard way to package a solution based on JAVA technology. It allows developers to package all relevant content (. class, pictures, sounds, and all supported files ) into a single file. The jar format supports compression, authentication, version numbers, and many other features. Reading a file from a jar file is a hassle, but it's not necessa
Method 1: In eclipse,Right-click the project,
Build path,
Java build path, select Libraries
Click "add library" in the button on the right"
Select "User library" and click "Next"
Click "User librarys ".
On the displayed page, click "new ...".
In the pop-up interface, enter a name and click "OK"
Click "add jars" to select a third-party jar package and click "OK.
The subsequent steps are very important if you do not perform subsequent operations. There
Accumulated by oneself:@ Spring-context-3.0.5.release.jar: Used primarily for loading class ApplicationContext in spring programs. eqApplicationContext AC = new Classpathxmlapplicationcontext ("Classpath:schedul-job.xml"); @ Spring-context-support-3.0.5.release.jar: Mainly used for spring job Timer class (Methodinvokingjobdetailfactorybean, Crontriggerbean,schedulerfactorybean). eq 1"Everydayjob" class="Schedul. Everydayjob">2"JobManager" class="Schedul. JobManager">3"joblist">45refLocal="E
source program and test program for using Java 1.5 in the Spring framework. Tiger is the development code of JDK 1.5.
Next, let's talk about the jar package in the DIST directory in detail. Understanding this helps us reduce the size of the release package and increase our understanding of the spring architecture.
Spring. JarIs a single jar package that contains a complete release module. But does not incl
Run the self-developed JAR package on Linux and replace the default JDK. Today, the message sending and receiving platform on Windows is deployed on Linux, which is always incorrect, running java-version is always jdk1.4. the final solution is as follows: www.2cto.com 1: modify the Linux code of the/etc/profile file [root @ localhost server] # vi/etc/profile add JAVA_HOME and PATH at the end of the file to configure the Linux code JAVA_HOME =/weblogic
I believe that when developing Java, you will surely encounter the need to package the Java project into a runable jar. Today, I will explain in detail how to generate a runable jar in this blog.
1. The project does not contain third-party jar packages
This case is relatively simple. Select the project to generate the jar
I believe that in the development of Java will meet the requirements of the Java project to be packaged into a workable jar, today I in this blog in detail on the generation of the two methods of running the jar, the pro-test is completely feasible.1. The project does not contain a third-party jar packageThis is relatively simple, select the project that needs to
We must have been exposed to a lot of jar packages when we did the project, so what is the jar package? The author learned that the jar is shorthand for Java archive file. From the name you can see that its application is closely related to Java. Here's a detailed description of how to build the jar package yourself, s
First of all thank the original blogger can write such a perfect blog, very practical, praise.
Bowen Connection: http://www.cnblogs.com/icewee/articles/2073203.html
The contents are as follows:
Objective:
We all know that Java can package binaries into executable jar files, double-click the jar and double click exe effect is the same, but the feeling is still different. In fact, the Java program packaged i
Use eclipse to generate a jar file (jar)
The program references other jar package under the project folder to create a new META-INF folder
The file content of manifest. mf is as large as follows:
Manifest-version: 1.0
Ant-version: Apache ant 1.6.2
Created-by: 1.5.0 _ 06-57 ("Apple Computer, Inc .")
Built-by: Hani
Main-class: COM. opensymphony. workflow. Designer.
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.