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
9
votes
2 answers

Pinning a Java application using Launch4j to the Windows 7 taskbar

I'm currently trying to pin a Java application to the Windows 7 taskbar. The application is launched with Launch4j. The program icon is displayed correctly but right-clicking the icon on the taskbar only shows a context-menu with the entry "Close…
kayahr
  • 20,913
  • 29
  • 99
  • 147
9
votes
4 answers

Distribute my application jar with a JRE

How can I distribute my application jar with JRE? I make my executable jar in exe by using launch4j. My application is a desktop based swing application. I want to make it like an application that if the user has no JRE installed, they can use it by…
moin
  • 91
  • 1
  • 3
9
votes
0 answers

Launch4j Support of Console and GUI applications

We have a java application that uses Launch4j to create a windows .exe. We achieve this using the org.bluestemsoftware.open.maven.plugin, which works great. I have one inquiry however. Recently I added cmd line functionality, and found that using…
Matt
  • 101
  • 3
8
votes
2 answers

How can I change the language parameter of an exe file generated by launch4j?

I'm producing a windows executable EXE file of my java program with an ANT task of launch4j in Eclipse. In the ANT task I'm using a saved launch4j config file (xml) and additionally overwrite the version information.
ToFi
  • 1,167
  • 17
  • 29
8
votes
2 answers

How to get the JRE to bundle with launch4j?

I understand that launch4j doesn't bundle the JRE in the .exe but that you have to place it next to it. My question is, how am I supposed to do that? Is there a way for maven to automatically locate and copy the JRE of the JDK I'm using to build my…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
8
votes
1 answer

Instructions to setup Launch4j for jar file

I have created my project in U:/myproject where all the java stuff is installed in C: Drive. the jar file i created through netbeans is in u:/myproject/dist/myproject.jar. Could some one provided me the clean instructions of how to setup the…
vijay
  • 1,129
  • 7
  • 22
  • 34
7
votes
1 answer

Launch4j: HeapPercent for multiple applications

Say I have three Java applications; A and B are 32 bit, C is 64 bit. All of them are configured with maxHeapPercent = 50 maxHeapSize = 1024 which reads "50 percent of available memory no less than 1024 MB", according to the documentation. Now my…
crusy
  • 1,424
  • 2
  • 25
  • 54
7
votes
1 answer

Java 11 On Windows 7 32 bits

I developed an Java application with Jdk 11 embedded. I packaged my application with launch4j and InnoSetup. I would like to run this application on 32-bit Windows 7. Is it possible to run it on 32 with an embedded Java 64? Thank you in advance.
Nadir Fouka
  • 147
  • 1
  • 2
  • 11
7
votes
3 answers

Sign a launch4j executable in ant with sign4j and jsign

I have an application in a Jar and I wrap it in a exe with launch4j so is easy for the user to launch it (in windows). I have a certificate, so I sign the jar (I don't know if this is really necessary because it will be wrapped inside the exe) and I…
PhoneixS
  • 10,574
  • 6
  • 57
  • 73
6
votes
2 answers

Can Launch4J be set so that the exe files it creates cannot show its contents through zip/egg/rar file when right click on/ open with it?

Launch4J is a jar to exe converter. I used Launch4J to convert jar to exe but when I right click on that exe file Launch4J created, it shows the contents in the jar file (class, etc files) from which it was made from when I right click on that exe…
User7829300192
  • 128
  • 1
  • 8
6
votes
3 answers

Launch4j maven plugin will not work on 64-bit linux machine

I am trying to use the maven Launch4j plugin version 1.5.0.1 When I build the pom on my windows box, there is no issue (my windows box has both 32-bit and 64-bit versions of Java installed). But when I build the pom on my linux box, I get this…
JoughTheFun
  • 91
  • 1
  • 7
6
votes
1 answer

Creating shortcut in startup folder using Inno setup

I'm developing a java application that i want to run on startup. I used launch4j to create .exe file and Inno setup to generate installer. Is there any way to create a shortcut in the startup folder using Inno setup ??
6
votes
1 answer

How can I use launch4j to wrap a GUI application that also provides a command line interface?

I am developing a Java application, which is mainly a GUI application. However, it also provides a command line interface. I can divide the command line parameters in three different types: The first type of parameter changes the behavior of the…
Stefan Dollase
  • 4,530
  • 3
  • 27
  • 51
6
votes
1 answer

Bundle a JRE into an exe using Launch4J

I'm attempting to bundle the JRE into my exe using launch4j. My folder structure is as follows- |- test |- jre(copied from my windows installation of jre) |-bin |-lib |- jretest.jar (the jar file I am using to create my exe) …
Pranav
  • 323
  • 1
  • 3
  • 16
6
votes
0 answers

Launch4j jre required error

I am using launch4j for the first time and I get systematic compile error (the same on OSX and windows xp). Here is the project xml file : false gui
philippehenri
  • 167
  • 2
  • 9
1
2
3
25 26