-1

I have an exhaustive problem currently boggling me...

I have created a java program through Eclipse and exported to a runnable .jar. Then I have used both Launch4j to create a .exe from it as well as used Inno Settup compiler to create an installer.

Both of these I then copied over to another laptop (Which has Java installed to latest version) I install the Inno setup file and all goes well.

Then when prompted to finish setup and open .exe the program runs and closes just as fast. To be precise the image that I have set as a splash screen flashes once and then closes. I do the same with task manager open and nothing even blips onto the processes panel.

I then proceed to try the same with the Launch4j .exe (It has the .jar in the same folder as the .exe). Same exact behavior as above. Quick flash of splash screen and then closes. Nothing in task manager.

My next step as prescribed by a few other Stack answers is to run via cmd which I do, same story I attempt to run both the newly installed .exe from the Inno setup and the wrapped .exe with exactly the same result and nothing displayed on the cmd window to indicate an error of any kind.

I would much appreciate any help or guidance with regards to this matter? Perhaps someone else has experienced similar?

Extra info. Virus total returns 0/70 hits for potential threats. I have made use of only native Java libraries and have no third party packages in the code. I have not got a certificate as I do this as a hobby for now while I am learning and so have not signed the .exe

SHooper
  • 38
  • 7
  • 1
    What logging does your app do after showing the splash screen? What does that logging show? It seems that the program is running (because of the splash screen) but then something else happens within the program and it crashes or exits. – mirtheil Jun 08 '20 at 19:21
  • It does not look like Inno Setup problem. You should isolate the problem better, if you need our help. See also [Application does not work when installed with Inno Setup](https://stackoverflow.com/q/44333839/850848). – Martin Prikryl Jun 08 '20 at 19:28
  • A friend of mine is helping me debug it currently, so far we have managed to potentially isolate it to a difference between me coding with a 64 bit jre and the machine I'm using as the test subject having a 32bit jre. – SHooper Jun 08 '20 at 19:58
  • @mirtheil it does not even get as far as logging... I have log4j2 built into the program but so far I've managed to bring up an UnsupportedClassVersionError. Now I need to find my way around this obstacle as I am dead sure that all the machines I'm producing this program for are going to be 32bit... – SHooper Jun 08 '20 at 20:00
  • Have you tried downloading a 32bit JDK? – NormR Jun 08 '20 at 20:17

1 Answers1

0

So! As an answer to my own question I have discovered what the issue was and will share it here.

Basically boiled down to my jdk/jre being 64 bit and the system needing to be run on being 32 bit.

Easy solution, rewrite program with 32 bit jdk/jre and recompile and it now works perfectly!

SHooper
  • 38
  • 7