The exported jar package has incomplete functions and the button clicking is invalid.

Source: Internet
Author: User

Recently I made a data management tool and encountered a "strange" problem. When running it directly in eclipse, all functions can be used normally, but exporting the jar package to the desktop won't work, some buttons are invalid, or the interface cannot be properly displayed. Record the solution and process as follows:

1. Is the exported jar package not the latest code, so I tried validate and clean up.

Result: useless!

2. decompile the exported jar package with the decompilation Tool

Result: The exported jar package code is the latest!

3. Is there an error? Although no error = is reported in eclipse

When the exported jar package runs directly, the error is not found, so it is run in DOS:

Java-jar XXX. Jar

The error message is found.

The reason is that I want to read the configuration file in my project, but the exported jar package does not export the configuration file in it, so the error "cannot find the configuration file" is reported after running ~~

This can also happen if images or other files need to be imported in the project ~

Result: The solution is successful!


The exported jar package has incomplete functions and the button clicking is invalid.

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.