Open-source code-publishing Java Desktop programs

Source: Internet
Author: User

Open-source code-publishing Java Desktop programs

I took a copy of the open source code of the desktop tool, repaired, modified, and modified it, and ran it on elipse. I felt good, but it was dumb to release the application. I don't know how to publish it!

Oh, it's really a little Java!

If it is the Microsoft camp, it will be compiled into exe directly. However, in java, If You Want To compile it into EXE, you still need a third-party tool, which is not available in eclipse.

Moreover, to compile the exe, you must first compile the source code into a jar package. However, the jar package is divided into common jar package and runable jar package. Which one do you need? In addition, the source code is a bit huge, and it references many jar packages.

This source code uses ant and lvy. I have never understood what they do. Ant and lvy should be like nuget to help download dependency packages, but it is unknown whether they can also help release, such as ant dist or something.

I had no clue when searching online. I asked my colleagues to find an answer. Some people say that java is not suitable for self-study.

The method is soy sauce:

1. Under eclipse, right-click the project and select export. In the displayed dialog box, select Java and then select Runnable JAR file.

2,

1) You can choose to compile all dependent packages into the runable package, but you can also choose 3) put the package in the same directory as the runable package. 2nd. I selected 3rd

Next, you can. There is a warning, regardless of it. <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4NCjxwPrW91 + 6686OsyfqzybXEzsS8/srH1eLR + bXEo7o8YnIgLz4NCjxpbWcgYWx0PQ = "here write picture description" src = "http://www.bkjia.com/uploads/allimg/160316/0446156409-1.png" title = "\"/>

Kettle52_lib: dependent package
Kettle52.jar: released executable package
Ui: Some resource files are not generated. I copied them manually.
Spoon. bat: manually written by me. The code is just like this:

java -jar kettle52.jar

Of course, double-click kettle52.jar. It is only convenient to create a batch file.

Related Article

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.