0

I am using Excelsior JET to convert my JAR into an EXE.

I want my application to be Standalone. Literally one single file without needing installation. JET creates an EXE and also a runtime folder.

The solution, according to them, is to use 7z to create a self-extracting file (into a temporary) that will run the application.

The problem is that the self-extraction takes a long time, so program startup is ridiculous.

So my question is: is there another alternative to pack my EXE and runtime into a single standalone file?

Voldemort
  • 17,051
  • 43
  • 135
  • 257

2 Answers2

0

I am using launch4j to wrap up my jars as .exe - works fine for me so far. I read about how people managed to wrap the JRE into the file using launch4j in this post:

How to bundle a JRE with Launch4j?

hope that helps - never tried myself...

Community
  • 1
  • 1
p555t
  • 66
  • 5
  • 1
    Yeah well, the reason I am using Excelsior Jet is because it compiles your JAR into native code (so ultimately the program is not Java). Launch4j just wraps the JAR (the JVM is still used). The problem is that the resulting EXE is accompanied by a runtime folder (and I want to distribute only one file). – Voldemort Aug 09 '15 at 21:59
0

DISCLAIMER: I work for Excelsior.

There were some changes made in Java 8 aimed at enabling the creation of standalone executables, such as JEP-178. It was unfeasible for us to implement this feature ourselves for earlier versions of Java. That said, we have only moved to Java 8 in Sep'15, and standalone executables are not in our near- to mid-term plans due to (relatively) low customer demand.

Dmitry Leskov
  • 3,205
  • 17
  • 17