Comparison of several jar turn EXE methods

Source: Internet
Author: User

original excerpt from: 7458666Comparison of several jar turn EXE methodsApril 13, 2012 17:33:07Hits: 15396

Objective

Today is the day to do this, no words, burn, ah,

In fact, the advantages of Java are really not on the application,

Want to make software to learn C or something.

Description

Several methods have been tried,

But it's not successful.

Maybe I have a problem with the operation.

"Jsmooth"

Contact with the first Jartoexe software,

Refer to this article:

Http://hi.baidu.com/chenzhiyanczy/blog/item/070a0f04f9da6308738b6514.html

Feel:

Can generate a standalone EXE file,

But it can't run on a machine without a JRE,

The bundled JVM described in this article is also not implemented.

Principle:

Think like, put the jar into EXE, and tell the computer where the JVM is.

"Exe4j"

Reference article:

Http://www.blogjava.net/huliqing/archive/2008/04/18/193907.html

Feel:

The last generated is a folder with Jre,jar,exe

EXE file cannot be used without leaving this folder.

Principle:

It should be to tell the computer jar where the JVM is.

"Inno Setup"

Reference article:

Ditto.

Feel:

is to make an installation package for the exe4j generated folder,

And then install it through this installation package,

It's kind of fun, but it's not realistic,

There is a JRE in an installation package, so it is very large.

"Greenjvmmake"

Reference article:

http://blog.csdn.net/cping1982/article/details/2892844

Feel:

By the above you can know the size of the jar to EXE is directly related to the JRE,

So the idea of streamlining the JRE size,

Self-pondering for a half day found basically useful nine rt.jar,

So prepare to streamline Rt.jar, use this software to do it,

After the combination of EXE4J will be an error,

The scheme presented in this paper is similar to EXE4J + Inno Setup,

But here's the step:

No way, we make a complete call to the Pack class Library applet, and then generate only the dependent library of Rt.jar, merged into the custom Rt.jar, run the program again. OK, it passed.

I don't know what a pack library is, so I can't go on.

Principle:

Streamline the JRE, and then place the JRE and jar together with an EXE that can tell the computer jar and JVM where

"Java Application Customization Factory"

Reference article:

Http://www.2cto.com/kf/201112/113906.html

Feel:

It's a lot better than the greenjvmmake.

Features: Streamline JRE, generate EXE for streamlined JRE and jar

There are two modes of streamlining,

The first is to include only the classes used in the runtime, which is small after the simplification of the JRE;

The other is to include classes used by the runtime and all of its dependencies, which are slightly larger, but with fewer errors.

Principle:

Streamline the JRE, then put the Jre,jar into a folder, generate an EXE, tell the computer where the jar and JVM are,

EXE also cannot be detached from this folder.

Recommended

If you want to put your own jar program on the other without the JRE computer can also be used,

Recommend this way: Java application custom Factory + Inno Setup

Comparison of several jar turn EXE methods

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.