The packaged into exe executable jar file

Verbatim https://www.dazhuanlan.com/2019/08/25/5d625cefab1f1/


Foreword

The last time I was through the use of the process, I passed the javaw -jar xxx.jarstart to a process in Task Manager appears as follows:

If there is a javaw be okay, but I write java process tool may be more. Process names are javaw if not resolved. In Windows executable jar package can be packaged into exe file, so there own process name, icon. I'm easy to manage in Task Manager (when not needed to kill the process).

Use the eclipse java project packaged as an executable jar package

Item selected on the right Export:

then expand the Java item selection Runable JAR File:

select main class, jar packet output position, depending on a packaging bag. Finally, click Finish.

Download and install cracked exe4j

Download exe4j

Crack download path: https://www.jb51.net/softs/541579.html

Extracting archive

After downloading, extract the archive:

installation

Click the installation process exe4j_windows-x64_5_0_1.exeto install it.

Crack

After successful installation start exe4j, click on the Change Licensebutton, and then run the compressed package Keymaker.exeto generate keys.



Paste keys to exe4j, you can click OK.

Packaged jar to exe

Project type

Select JAR in EXE modeand click next.

Application info

Then enter the document referred to exe, exe file output location. thennext

Executable info

Executable type:Select the first item GUI application, expressed GUI processes, the second option represents the control panel process.
Executable name:Enter the name of the software ( OCR)
Icon file:to select the icon's position, the icon to download the need to achieve good, icons are not necessary, no it does not matter.
And then expand the Advanced optionsfirst optionRedirection

Redirection

Then check Redirect stderr, error output directory, then next, Service options and Version info the default, so click next, nextyou can.

32-bit or 64-bit

Then choose Generate 64-bit executableto produce a 64-bit exe process. Then next,next

Java invocation

To the fifth configuration items Java invocationhere should just generated executable jar package added. And 所有的依赖包, click the green plus sign to add an executable Jar package


Import all dependencies

Then Main class:select the main categories:

JRE

Select the minimum supported version, the biggest default version can not write. Then expand Advanced options, select Search sequence.

Click the green plus sign

and choose to find a local jre:

and then move it to the very top:


Then next,

Then nextdefault :

back up next to.

Run the generated exe

Double-click to open the output directory to run the exe file to run

Reference: https://blog.csdn.net/qq_29232943/article/details/52861800

Guess you like

Origin www.cnblogs.com/petewell/p/11408879.html