Integrate the Java environment into standalone products __java

Source: Internet
Author: User

It is well known that products made in the Java language must be run under the JDK environment, so how can you run without the Java environment installed?

Read a lot of blogs, summed up a method that is as follows;

①: Download the running Environment JRE

②: Pack up standalone files, such as jar files, or war files

③: Write a start.bat bat file that reads as follows: Start jre1.8.0_111 (JRE version number)/bin/javaw-jar My.jar (Jar package file name)

Put these three below the sibling directory, click Start.bat, I have not installed the Java environment on the computer to try.

Here we have to understand the relationship between the JDK,JRE.

First, when we install the Java environment, we install the JDK compilation environment, with the JRE running environment under the JDK's sibling directory.

If needed, this is the link: click here

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.