The JVM found at Java_home is damaged. Please reinstall or define exe4j_java_home-to-a installed 32-bit JDK or JRE

Source: Internet
Author: User

First, Introduction

Exe4j is a great tool to package the jar package as an EXE to run. He can integrate the JRE environment with the packaged EXE so that the packaged EXE application can run on a machine that does not have Java installed (provided the EXE is bundled with the JRE).

Ii. Problems and Solutions

When using the EXE4J integrated JRE package EXE, when running the EXE application, the error message is found:

Error Hint: Java Virtual machine discovers java_home corrupt, need to reload or define EXE4J java_home configuration to point to a 32-bit JDK or JRE.

The reason is that exe4j automatically generates an executable file that supports 32-bit JVMS while packaging the jar file as an EXE file.

Workaround:

1. If your JVM is 64-bit, in the process of configuring executable EXE files need to be configured to generate 64-bit, be sure to tick the following settings; This is typically because the computer is a 64-bit system,

So installed 64-bit JRE, packaging EXE need to install 64-bit exe4j software, packaging generated executable file should also be 64-bit.

2. If your JVM is 32-bit, you do not need to configure the executable EXE file to generate 64-bit, that is, do not need to tick the following settings, this is generally because the computer is a 32-bit system,

So installed 32-bit JRE, packaging EXE need to install 32-bit exe4j software, packaging generated executable file should also be 32-bit.

  

  

The JVM found at Java_home is damaged. Please reinstall or define exe4j_java_home-to-a installed 32-bit JDK or JRE

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.