Verbatim https://www.dazhuanlan.com/2019/08/25/5d625cefab1f1/
- Foreword
- Use the eclipse java project packaged as an executable jar package
- Download and install cracked exe4j
- Packaged jar to exe
- Run the generated exe
Foreword
The last time I was through the use of the process, I passed the javaw -jar xxx.jar
start 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.exe
to install it.
Crack
After successful installation start exe4j
, click on the Change License
button, and then run the compressed package Keymaker.exe
to generate keys.
Paste keys to exe4j, you can click OK.
Packaged jar to exe
Project type
Select JAR in EXE mode
and 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 options
first optionRedirection
Redirection
Then check Redirect stderr
, error output directory, then next
, Service options and Version info the default, so click next
, next
you can.
32-bit or 64-bit
Then choose Generate 64-bit executable
to produce a 64-bit exe process. Then next
,next
Java invocation
To the fifth configuration items Java invocation
here 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 next
default :
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