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

JavaFX module program with MySQL doesn't work with custom JRE

I wrote small program with JavaFX, and MySQL worked through JDBC. It works well, was compiled well to jar and works from jar also well. To deliver this application to users I packed this to exe with launch4j and build custom small JRE. Exe file was…
2
votes
1 answer

Running Launch4J from java code?

I have used launch4j to wrap an executable jar into an exe in my pom.xml (maven project file) file during compile/build time. But is it possible to run launch4J from a piece of java code and creating an exe wrapper dynamically when the java…
u123
  • 15,603
  • 58
  • 186
  • 303
2
votes
1 answer

EXE using launch4j does not work (javafx project), JAR files need to be ran from the console specifying the VM argument of the javafx location

created a very simple gui with javafx trying to test out how creating a javafx exe would work, extracted a runnable jar file from eclipse but that doesnt run unless i use the cmd and add the VM argument --module-path ""…
2
votes
0 answers

Is it recommended to sign your exe from Launch4j?

After creating my exe file from my jar using Launch4j, I noticed this message: WARNING: Sign the executable to minimize antivirus false positives or use launching instead of wrapping. So I started digging into how to sign it, and finally got that…
Alex
  • 144
  • 16
2
votes
1 answer

JavaFX - Derby error missing components in Launch4j

I'm making a javafx Library Management System project using intellij idea that uses derby as an embedded db, and it works just fine, but when i convert my project into a jar file using the build artefact option in intellij idea then convert that jar…
2
votes
2 answers

JavaFX project wrapped with Launch4j VM arguments path

For some of my projects I'm using JavaFX for the GUI, and prior to JavaFX being split as OpenJFX I didn't had any problems with it. Now I want to use the latest versions of both JDK and JavaFX, so because of this some changes had to be made. While…
Devorious
  • 107
  • 1
  • 8
2
votes
2 answers

Free tool for create an exe

Is there any free tool similar to Launch4j which bundles jre and don't require internet connection to download the jre and run the exe.
Aerrow
  • 12,086
  • 10
  • 56
  • 90
2
votes
3 answers

How to link lwjgl dll with launch4j

I am trying to wrap my jar as an exe using launch4j. However I am using the lwjgl library and having trouble linking the native dll's. My directory structure is as follows: I have a top directory which contains the following path:…
kgrad
  • 4,672
  • 7
  • 36
  • 57
2
votes
0 answers

Unable to avoid searching for invalid dependency in gradle build

I try to include the Launch4J gradle plugin in our project. plugins { id 'edu.sc.seis.launch4j' version '2.4.8' } However, the build fails with the following error. Could not resolve all files for configuration ':compileClasspath'. Could not…
DKIT
  • 3,471
  • 2
  • 20
  • 24
2
votes
0 answers

Using launch4j after Jar Obfuscation with Proguard

I'm trying to publish my java program in .exe but when using launch4j after using Proguard it tells me that can't find the main class the exe generated successfully but doesn't work at all when try to run it through launch4j it tells me Exception in…
2
votes
0 answers

Launch4J Can't Find Main Class

I had spent all day (and many days before) trying to make Launch4J work but for some reason, it can't find the main class file. It will successfully build but running it only causes: Error: Could not find or load main class net.path.to.Main Caused…
Steph
  • 831
  • 6
  • 19
2
votes
1 answer

Need help in Launch4j

I have an ant file which creates an installer. I used launch4j and innosetup. Installer get created. But I got the following error My ant file is: