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
93
votes
7 answers

How to bundle a JRE with Launch4j?

I have Launch4J on my computer and it's a great program. One of its features I'm interested in is the ability to bundle a JRE in the general .EXE file. However, I can't find any documentation that describes how to go about doing this. How do I…
CodeBunny
  • 1,991
  • 5
  • 22
  • 32
42
votes
9 answers

How do I bundle a JRE into an EXE for a Java Application? Launch4j says "runtime is missing or corrupted."

I am new to programming in Java but am generally familiar with how everything works. I would like to be able to put both a jar file and a jre into a windows executable(exe) so that when I distribute it, the client needn't have a JRE installed. What…
MagicGuy52
  • 571
  • 1
  • 6
  • 11
37
votes
5 answers

What's the best way to start Java applications on Windows 7?

Requirements I want to publish a Java GUI application on Windows 7. This application is using the Swing Toolkit and doesn't need any native code. The application is installed using an NSIS installer. I want to integrate this application into Windows…
kayahr
  • 20,913
  • 29
  • 99
  • 147
35
votes
7 answers

Pinning a Java application to the Windows 7 taskbar

I use Launch4j as a wrapper for my Java application under Windows 7, which, to my understanding, in essence forks an instance of javaw.exe that in turn interprets the Java code. As a result, when attempting to pin my application to the task bar,…
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
30
votes
9 answers

Java packaging tools - alternatives for jsmooth, launch4j, onejar

I have used these three open source tools for packaging my java apps, but they all look like abandon-ware now. All three are very good pieces of software. What are the options now? (or is using Java for desktop app development no longer a "hot"…
Edgar
  • 309
  • 1
  • 3
  • 3
29
votes
4 answers

Pinning a Java executable (with launch4j) to the Windows 7 taskbar

After spending half a day searching and trying, I'm finally giving up. I have a java application of which I create a runnable jar (to include any other libs and just have a single jar file). With launch4j and the runnable jar I'm making an…
ToFi
  • 1,167
  • 17
  • 29
27
votes
2 answers

When I add a Splash Screen using Launch4j, I get a Startup Error ("An error occurred while starting the application")

I noticed that Launch4j's GUI seems to prefer a bmp file, so I used Gimp to convert my jpg file into that format, but I kept getting the error when trying to run the executable generated by Launch4j.
GregNash
  • 1,316
  • 1
  • 16
  • 25
13
votes
2 answers

Trying to integrate Launch4j in a Maven project using Alakai plugin

I am trying to integrate the generation of an installer as part of a maven compilation process. I have found Alakai's plugin for Launch4j. I have create a simple Hello World application using Maven. I have tried to use configuration examples…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
12
votes
4 answers

Exception in Launch4j

I have the following instructions in my build.xml, and I am getting the following exception. launch4j: net.sf.launch4j.ExecException: Exec failed (1): C:\Program Files\Launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386…
Manikandan
  • 1,479
  • 6
  • 48
  • 89
12
votes
1 answer

Create exe with launch4j with maven

I want to wrap my jar with launch4j to an exe file. Here is my pom.xml:
Freewister
  • 190
  • 1
  • 1
  • 15
12
votes
7 answers

Launch4J - how to attach dependent jars to generated exe

I have a simple java project, which requires external jars. I build this with netbeans and after Clean and Build command, I can find in dist directory the following structure: -myApp.jar -lib/ library1.jar library2.jar typical, I would…
norbi771
  • 814
  • 2
  • 12
  • 29
11
votes
1 answer

How to automatically update an application installed with Inno Setup

I have an executable application setup.exe for Windows that I realized with Launch4j/Inno Setup based on Java. I often frequently release new versions and bug fixes. I would like to know if there is a mechanism to install updates automatically?
Mohamed Bunaga
  • 113
  • 1
  • 5
10
votes
8 answers

Configure Launch4J to use 32-bit JVM only

I'm using Launch4J to start my Java application and if an x64 JRE is present on the system, Launch4J seems to prefer it. Unfortunately my application cannot run on a 64 bit JVM because I'm loading a 32 bit DLL, which is not possible and leads to an…
Daniel Rikowski
  • 71,375
  • 57
  • 251
  • 329
10
votes
2 answers

launch4j exe has nothing to say for itself, anyone got a suggestion?

Running on Linux, I've used launch4j to package an exe. I copy the exe into my Windows 7 VM, and run it. And nothing happens. I run it with --l4j-debug, and nothing still happens (at least, if there's a log file, I cannot find it). Is there some…
bmargulies
  • 97,814
  • 39
  • 186
  • 310
9
votes
5 answers

How to get the path to the executable when using launch4j?

I'm using launch4j to wrap an executable jar file in my Windows application, but I need to pass references to some of its libraries in through the JVM arguments. The libraries in question reside in the application install directory, and are always…
user597474
1
2 3
25 26