triplea-game / triplea

TripleA is a turn based strategy game and board game engine, similar to Axis & Allies or Risk.
https://triplea-game.org/
GNU General Public License v3.0
1.34k stars 393 forks source link

Version 2.5.22294 Java Bug #10687

Closed adamf2 closed 2 years ago

adamf2 commented 2 years ago

Getting an error that reads: No JVM could be found on your system. Please define EXEJ4_JAVA_Home to point to an installed 64 bit or JRE or download a JRE from www.java.com

adamf2 commented 2 years ago

oops...2.5.222294

asvitkine commented 2 years ago

What operating system? Have you tried reinstalling tripleA?

adamf2 commented 2 years ago

Win10. Yes I have tried reinstalling. Same error

On Fri, Jun 17, 2022 at 4:06 PM asvitkine @.***> wrote:

What operating system? Have you tried reinstalling tripleA?

— Reply to this email directly, view it on GitHub https://github.com/triplea-game/triplea/issues/10687#issuecomment-1159193817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEF3CNL5A6VD73XLDQKSBDVPTLDVANCNFSM5ZDHWCUQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Regards Adam Feinberg

@AdamMFeinberg Cell 201.280.5509

DanVanAtta commented 2 years ago

Did you try installing a JRE @adamf2 ? Did you install it with the same OS user as you are using to launch the install4j installer?

asvitkine commented 2 years ago

I'm a bit confused. Doesn't our install4j installer include a jre?

DanVanAtta commented 2 years ago

@asvitkine dug this up from page 204 of the install4j handbook :nerd_face:

C.4 How Installers Find A JRE Installers generated by install4j are native executables or shell scripts and can start running without a JRE. However, the installer itself requires a JRE in order to perform its work and so the first action of the installer is to locate a JRE that is suitable for both the installer and your application. In this process it performs the following steps:

  1. Look for a statically bundled JRE. If a statically bundled JRE is included with the installer, it will unpack it and use it. First, this JRE is unpacked to a temporary directory, later it is copied to a location that depends on whether the bundled JRE is configured as shared or not. • Not shared It is copied to the jre directory in the installation directory of your application. No other installer generated by install4j will find this JRE. It will not be made publicly available, for example in the Windows registry

In sum - the installer should be launching the bundled JRE in order to support the installation process. We have the bundled JRE as 'not shared'.

DanVanAtta commented 2 years ago

@adamf2 which exact installer are you using, what is the file name on it? Do you know if you are using a 32 or 64 bit OS?

I wonder maybe if this is a 32 vs 64 bit OS issue (something like: https://stackoverflow.com/a/32292290)

adamf2 commented 2 years ago

64 bit. I have had to uninstall and reinstall in the past with some success. This time the latest version will not work due to this error, but older versions are functioning

On Sat, Jun 18, 2022 at 12:15 AM Dan Van Atta @.***> wrote:

@adamf2 https://github.com/adamf2 which exact installer are you using, what is the file name on it? Do you know if you are using a 32 or 64 bit OS?

I wonder maybe if this is a 32 vs 64 bit OS issue (something like: https://stackoverflow.com/a/32292290)

— Reply to this email directly, view it on GitHub https://github.com/triplea-game/triplea/issues/10687#issuecomment-1159357539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEF3CNYZYA7MY4UBPXRPHDVPVEONANCNFSM5ZDHWCUQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Regards Adam Feinberg

@AdamMFeinberg Cell 201.280.5509

adamf2 commented 2 years ago

I even tried uninstalling just now and I got the same error.

On Sat, Jun 18, 2022 at 6:58 AM adam feinberg @.***> wrote:

64 bit. I have had to uninstall and reinstall in the past with some success. This time the latest version will not work due to this error, but older versions are functioning

On Sat, Jun 18, 2022 at 12:15 AM Dan Van Atta @.***> wrote:

@adamf2 https://github.com/adamf2 which exact installer are you using, what is the file name on it? Do you know if you are using a 32 or 64 bit OS?

I wonder maybe if this is a 32 vs 64 bit OS issue (something like: https://stackoverflow.com/a/32292290)

— Reply to this email directly, view it on GitHub https://github.com/triplea-game/triplea/issues/10687#issuecomment-1159357539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEF3CNYZYA7MY4UBPXRPHDVPVEONANCNFSM5ZDHWCUQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Regards Adam Feinberg

@AdamMFeinberg Cell 201.280.5509

-- Regards Adam Feinberg

@AdamMFeinberg Cell 201.280.5509

adamf2 commented 2 years ago

Fixed! Just tried update rather than reinstall

On Sat, Jun 18, 2022 at 6:59 AM adam feinberg @.***> wrote:

I even tried uninstalling just now and I got the same error.

On Sat, Jun 18, 2022 at 6:58 AM adam feinberg @.***> wrote:

64 bit. I have had to uninstall and reinstall in the past with some success. This time the latest version will not work due to this error, but older versions are functioning

On Sat, Jun 18, 2022 at 12:15 AM Dan Van Atta @.***> wrote:

@adamf2 https://github.com/adamf2 which exact installer are you using, what is the file name on it? Do you know if you are using a 32 or 64 bit OS?

I wonder maybe if this is a 32 vs 64 bit OS issue (something like: https://stackoverflow.com/a/32292290)

— Reply to this email directly, view it on GitHub https://github.com/triplea-game/triplea/issues/10687#issuecomment-1159357539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEF3CNYZYA7MY4UBPXRPHDVPVEONANCNFSM5ZDHWCUQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Regards Adam Feinberg

@AdamMFeinberg Cell 201.280.5509

-- Regards Adam Feinberg

@AdamMFeinberg Cell 201.280.5509

-- Regards Adam Feinberg

@AdamMFeinberg Cell 201.280.5509

DanVanAtta commented 2 years ago

That is good news @adamf2! Just to be sure, you selected 'update' when installing TripleA? (rather than java or perhaps something else)