How to generate an executable of the Java program

xiaoxiao2021-03-11  193

How to generate an executable file for a good Java program?

- Reposted a Java program is running on the JVM. We don't use Java to go to Page. Do you want to make JAR, but the prerequisite for run is your IE. JVM. After seeing the title, I thought JB really provided a mainstream method of packaging the Java application as an Exe file, you would be disappointed, one of the following tips is just a skill. This is the use of Borland's non-public use, which can make an EXE file to start the Java file through JBuilder. JBUILDER does not support local compilation mechanisms. But there is a hidden tip that allows you to start Java programs from an executable file, you can appear or do not appear in the Console window. To do this, you need these files in jbuilder's bin directory: jbuilder.exe jbuilderw.exe (optional) jbuilder.config jdk.config javalauncher.dll "jbuilder.exe" is a universal executable shell file for Start Java programs, "jbuilderw.exe" seems to be Javaw.exe, which is packaged "jbuilder.exe", but does not show that console window when running. The key to using these files is the file name. "Jbuilder.exe" finds a configuration file called "jbuilder.config", which contains information that runs the Java program. The same "jbuilderw.exe" finds "jbuilder.exe" to start Java programs that do not have a console window. If jBuilder.exe is renamed "foo.exe", "foo.exe" will look for "foo.config" profile, the same "jbuilderw.exe" is renamed "foow.exe", it will go Look for "foo.exe" files. Speaking here, smart readers should guess how to use JBuilder.exe to launch the app. Just rename the JBuilder .exe, jBuilerw.exe, jBuilder.config, specifies the primary class and class path in jbuilder.config, you can start by performing jbuilder.exe (or renamed EX file) Java app is. Below is this unit as an example. Borland JBuilder 5 is installed in the E: / JBuilder5 / Directory, build a Temp directory in E: / jbuilder5 / bin /, then copy jbuilder.exe, jbuilder.config, javalauncher.dll, jdk.config four files to E: / jbuilder5 / bin / temp / directory, then build a hello directory in this directory, generate a Hell in this directory

Ayuan

9CBS certified blog expert

Blog expert

Huawei old employees

Big Data

More than ten years, in Huawei, Internet Corporation's experience, profound understanding and practical experience in CRM, big data, mainly sharing various project experience, including architecture, Java, big data and other articles

转载请注明原文地址:https://www.9cbs.com/read-128953.html

New Post(0)