0

There shouldn't be any additional requirements to configure a JRE or JAVA_HOME and all that. I'd like to bundle a jre (ideally the IBM JRE) within the binary.

I've looked at the following tools:

JWrapper: Seems to require a splash screen which I don't need because I'm developing a console application

packr: Doesn't seem to work with the IBM JRE only the Oracle and OpenJDK ones.

Jar2Exe: Doesn't seem to work with the IBM JRE either.

Everything else seems to only work for windows.

Are there any other tools I'm not aware of? Should packer and Jar2EXE actually work with the IBM JRE but I'M doing something wrong?

kutuzof
  • 660
  • 1
  • 7
  • 22
  • You can't bundle a JRE inside an executable, unless you're talking about an install program, but it doesn't sounds like that's what you're saying. – Andreas Sep 12 '16 at 08:22
  • No I don't mean an install program. I mean a single executable which contains the executable jar and the jre to run it against. It shouldn't be obvious to the user that java is being used in any way. – kutuzof Sep 12 '16 at 08:54
  • Is Native packaging an option? It is part of Java 8 (https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/self-contained-packaging.html). – Axel Sep 12 '16 at 13:51

1 Answers1

2

Try Excelsior JET. I'm not sure about IBM JRE (there is a thread about it), but it works perfectly with Oracle JRE and OpenJDK.

Vadeg
  • 1,156
  • 10
  • 22
  • You can generate Linux Binaries with it? I've downloaded a trial version but it seems to only want to let me generate .EXE files. – kutuzof Sep 14 '16 at 06:50
  • You had to download the trial for Linux. Cross-compilation is not yet supported. – Dmitry Leskov Sep 14 '16 at 13:06
  • 1
    @Vadeg Excelsior JET has its own Java runtime, so it does not need a JRE or JDK. (Technically, we build the Platform API from licensed Oracle code, but the JVM is our own clean-room implementation). – Dmitry Leskov Sep 22 '16 at 08:42