This blog post is a modification to the previous blog, aiming to streamline the size of the installation package and the space occupied after installation.
Problems in the previous article: The same JRE is packaged twice, resulting in the installation package size almost doubled and the space occupied after installation is increased by more than 50 MB.
Cause: After carefully reading the previous article, you can find thatSmarthome0.0.7 _ fat. JarMediumJre7u6 is included, and jre7u6 is sta
With the help of install4j software, I have finally learned how to package Java programs (jar) into installable Windows applications.
The related software can be found at http://download.csdn.net /.
Process records are as follows:
1. generate an executable JAR file in various ways (see http://blog.sina.com.cn/s/blog_65bb33240100ii4r.html)
2. generate a new jrebundled file with the suffix tar.gz.
3. Package Java programs through
a stronger Compression Method
The lzma and pack200 compression methods can also be simplified.
5. Clean and uninstall
Add an action-delete files and directoryies to uninstallation. Select installation directory as the Directory and select reversive. The entire installation directory will be uninstalled.
If it is not selected, by default, install4j will only delete the files and folders generated during installation, rather than the files or folders
I searched for this thing for a long time and got it. I installed 3.2. The serial numbers below are the same and can be used. Share it, saving you the trouble to find it again.
Install4j Enterprise Edition 3.1.3 registration code, serial number, cracked version, registration Machine
S/N: A-G42M # 03948f-pzwgavu2ohmw #316A-G42M # 03948f-pzwgavu2ohmw #508
Install4j proffe0000edition 3.1.2 registration co
Package EXE for Java program with INSTALL4J toolProducer: MarkProduction Time: 2013-05-02?
Use Eclipse to package the source of the program into a jar file.Packaging jar Method I do not introduce, I believe everyone will, will not Baidu a bit.
Ready to work.The jar package that will be exported: Aaa.jar, the picture that the program needs: images, database, and the PNG image of the icon after you want to generate the EXE file, copy all to a SMMs
Package the jar into an EXE program using install4j. After some exploration, the jar program can finally succeed. In order to write down the process, write down the process for memo!
1. General setting
First, set the name of the project you want to package, such as the version number, full name, or short name. If there is a Chinese character, it is displayed in a box. However, the package is displayed in Chinese. Press the right arrow in the upper rig
. It is troublesome to say that rt is simple. jar is not called, except JVM. DLL (which calls everything), we can simply delete it. The trouble is that no tool has provided such a function so far (consider writing one ), now we can only determine whether these files will be rt based on experience. jar is called. I want to write this part and try again. I want to sell it first. However, you can note that these file names usually correspond to each other.
Step 3: compress the simplified JRE
There
simplified RT. jar re-copy all the font support classes (this part is in greenjvmmake. jar has added the function of retaining the specified library completely. because there are too few changes and it is not released yet, CTRL + C and CTRL + V are not troublesome ).Simplified Rt. Jar size after replacementStep 2: delete unnecessary EXE, DLL and all other configuration files.This step is simple and easy. It is troublesome to say that rt is simple. jar is not called, except JVM. DLL (which calls
Compile openfire with Eclipse, where Ant adds bulid.xml times wrong
Taskdef class Com.install4j.install4jtask cannot found
The reason is that the install4j path of the Bulid.xml Installer.install4j.home is incorrect
Solve:
1. Download and install install4j
Page http://download.csdn.net/detail/wjx5858598/2861075
Address http://dldx.csdn.net/fd.php?i=854628610758033s=4698e847820b00451d5034cf5e433f5e
2. Modify
package it into an exe file today, because the exe file is not cross-platform after all, with the exe format, the original intention of java is lost.Exe4j can be packaged into various formats of exe. You can package the jar into exe, reference an external jar file, or package it into a windows service program, in addition, you can set the lowest version of jre and the startup screen. Although java6.0 has implemented this, the startup screen generated by exe4j is still not fast.
3. Package the e
Note:Development Environment (IDE): Eclipse 3.3.2 + jdk1.6 + ant 1.720.openfire_src_3_5_1.zip
1. IfCodeUsedImport testng. xxx statement, you need to import the testng-5.8-jdk15.jar class library;
2. Warning Information is irrelevant. This is because the warning information is generated only when JDK 1.5 or later is used. If JDK is used, the warning information is not displayed. Some of these codes are compiled using JDK 1.4, while JDK 1.5 does not support generics, while JDK and JDK 1.6 Supp
.
Complete the installation process.
Start OpenFire.
rpm– Redhat-based UNIX system (Rhel,centos, fedora, etc.)
stop openfire.
backup openfire installation directory
backup OpenFire database. In the 2nd step, you need to be aware of the embedded database backup.
install the new RPM. Perform an update for RPM-UVF openfire-3.3.3-1.i386.rpm the current installation
starts OpenFire. Remember that the server can start manual or automatic
First, overview:This is the first to read the original English professional books, in general, because they have some foundation, reading is not very laborious.The first half of the main is to introduce the Java related syntax, just by this opportunity to consolidate the ability of their code, basically the bookThe code is played again, the front part is mainly used by the notepad++ to write, notepad++ also have code hint function, use up or quiteGood, but with CMD to compile, connect, javac and
Solve spark garbled characters:In Linux, the problem of garbled Chinese characters in the Java graphic interface is often caused by the absence of appropriate fonts in the appropriate JRE/fonts.
For example, spark will ~ /. Write the last line in install4j, indicating that the JRE used by Spark is its own JRE.Jre_version/home/gaoyibo/work/jdk1.6.0 _ 05 1 6 0 05Jre_version/usr 1 6 0 0Jre_version/home/gaoyibo/comodo/openfire/spark/JRE 1 6 0 02
Solve
Original address: http://funine.iteye.com/blog/2220359(All material in this document will be attached at the end of the article)Preparation Tool exe4j, converticon.com (for making pictures in. ico format), JRE file packIn fact, there are other ways to achieve this function, such as install4j to make, Jar2exe Wizard and Javalaucher together to make, but still think exe4j useful some.So the experiment officially begins:First, we need to prepare some exp
For completed Java application development projects, it should be made safe and stable from the commercial point of view.
To ensure product security and enterprise benefits. The most efficient commercial and chemical products on the market
InstallShield, installanywhere, install4j, etc. Installshield is suitable
C, C ++, Delphi, Pb, VB, etc. The latter two are suitable for packaging and production of Java applications. The following uses installanywhe
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.