Questions tagged [launch4j]

Cross-platform Java executable wrapper for creating lightweight Windows native EXEs. Provides better user experience.

Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found. http://launch4j.sourceforge.net/

381 questions
5
votes
4 answers

Escape property in pom.xml

I would like to escape a property in pom.xml. Not in ressources, I know it is possible with a filter. For example I try to use launch4j plugin like this : org.bluestemsoftware.open.maven.plugin
EFalco
  • 668
  • 1
  • 8
  • 11
5
votes
1 answer

Launch4j doesn't work (main class not found)

I am using Launch4j to create an setup file. I have 7 classes, under a package. And JavaSamp is my main class. I have created jar files for all the classes. And my launch4j looks like this: true
Manikandan
  • 1,479
  • 6
  • 48
  • 89
5
votes
1 answer

How to add VM arguments in Launch4j

I've had some confusion in trying to create a .exe file to run my JavaFX application. In Eclipse I use the VM Argument: --module-path "\path\to\javafx-sdk-14.0.1\lib" --add-modules javafx.controls,javafx.fxml But I'm not sure how to add it to…
5
votes
4 answers

Gradle Launch4J EXE not trusted by Windows 10

Please note: I have created this GitHub project right here that can be used to perfectly reproduce the problem I'm seeing. Java 8 here attempting to use Launch4J via the gradle-launch4j Gradle plugin to build a Windows native EXE application. I am…
hotmeatballsoup
  • 385
  • 6
  • 58
  • 136
5
votes
1 answer

How to use launch4j with a Java custom runtime image?

Is it possible to make a bundle/wrapper exe file with Launch4j with a modular java app? The app is modular (jmods), exported with jlink, it doesn't generate any jar, but a custom runtime image (a few folders) with a bat file that runs the command:…
tec
  • 999
  • 3
  • 18
  • 40
5
votes
2 answers

Launch4j, NSIS, and duplicate pinned Windows 7 taskbar icons

I'm having a problem wherein when I pin a taskbar icon in Windows 7 for my application, clicking the icon opens up a separate (duplicate) icon for the program instead of keeping it grouped with the shortcut used to call it. The application itself is…
aardvarkk
  • 14,955
  • 7
  • 67
  • 96
5
votes
1 answer

How to run (exe) java-8 application in java-11

I have made a java application using jdk 8 and then made an executable file from the jar. Then I updated my system to java 11, and deleted all older java versions from my system, and when I run this app from exe file it can't run and takes me to…
wdc
  • 2,623
  • 1
  • 28
  • 41
5
votes
4 answers

The .exe I created with Launch4j doesn't run

I was able to successfully create a .exe file from an executable jar. From Launch4j I can test the wrapper, and the output on the log is what I expect. However if I try to run the exe from the command line or from Windows Explorer, nothing happens.…
csw
  • 121
  • 1
  • 1
  • 4
5
votes
2 answers

How do I use the Bundle JRE option in Launch4j

I have worked with Java for a while now, long enough to start producing my own programs with GUIs and not just little sample programs from a text book that run in Eclipse. I wanted to make my programs more user friendly for the user, specifically…
Umdoobby
  • 105
  • 1
  • 5
  • 11
4
votes
1 answer

Using Launch4j, when should I Wrap the Jar?

I'm new to Launch4j. By default, it "wraps" the jar, but there is a checkbox that reads "Dont't wrap the jar, launch only". When should I check this box? When should I not check this box?
GregNash
  • 1,316
  • 1
  • 16
  • 25
4
votes
2 answers

JVM command start options duplication

I have found a legacy software that we're using that has its launch properties malformed, so it receives these two unequal xmx as a properties: java -jar myapp.jar -Xmx128m -Xmx512m I do not have access to the launcher source code(not being able…
kurast
  • 1,660
  • 3
  • 17
  • 38
4
votes
2 answers

StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion

[SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion. I have tried solution mentioned in various discussion like adding servicesPipeTimeout with some bigger timeout value but it is not…
Madhav Kumar Jha
  • 353
  • 1
  • 2
  • 13
4
votes
0 answers

How to make an exe with Launch4j that does not require admin priviledges with a bundled JRE?

I'm attempting to create an installer for my Java application, and am using IzPack with launch4j and a bundled JRE to do so. I have it working so that the installer gets generated, and an executable created from the installer. When I try to execute…
Robert K
  • 472
  • 4
  • 17
4
votes
0 answers

In launch4j wrapper, my custom log4j2 appender can't be found

I have a project, which uses a custom log4j2 appender, which works fine when started normally via a java command line with the maven jar-with-dependencies assembly. However, when I create an exe-wrapper with launch4j, the appender cannot be found.…
mtj
  • 3,381
  • 19
  • 30
4
votes
1 answer

Launch4J - main jar, all dependencies into one exe

How do I include all the jars into Launch4J so that I can build an exe without any dependencies? Thanks.
theAnonymous
  • 1,701
  • 2
  • 28
  • 62
1 2
3
25 26