Author Topic: V16 - BPSim "Could not find Java Runtime Environment"  (Read 3381 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
V16 - BPSim "Could not find Java Runtime Environment"
« on: November 07, 2022, 02:19:43 pm »
On three of our machines, BPSim has suddenly stopped working the "Configure BPSim" Window says: "Could not find Java Runtime Environment".  We've tried uninstalling and re-installing EA but to no avail!  Does anyone know what's going on?  As far as we know (typical user response), we didn't do anything.  It was working last week.


TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

wivel

  • EA User
  • **
  • Posts: 243
  • Karma: +12/-1
  • Driven by Models
    • View Profile
Re: V16 - BPSim "Could not find Java Runtime Environment"
« Reply #1 on: November 08, 2022, 01:43:20 am »
Hi Paolo

Have you has any updates done on your machines? Could be that the an update have removed the JRE from your machines, since it is not only one machine that fails.

Try to open a terminal window and write 'java -version'. If it fails, the JRE is either removed or not in the PATH.

Henrik

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: V16 - BPSim "Could not find Java Runtime Environment"
« Reply #2 on: November 08, 2022, 01:00:15 pm »
Hi Paolo

Have you had any updates done on your machines? Could be that an update has removed the JRE from your machines since it is not only one machine that fails.

Try to open a terminal window and write 'java -version'. If it fails, the JRE is either removed or not in the PATH.

Henrik
Hi Henrik,
Overnight, the JRE Appears to have returned on some machines!  Although on those, only for the 32-bit version.  The 64-bit version still fails!
On the working machines, "java -version" returns:
Code: [Select]
java version "15.0.1" 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
and the JRE is to be found in C:\Program Files\Common Files\Oracle\Java\javapath as mentioned in the "path" environment variable.
On the non-working machines, it's nowhere to be found!

Repairing EA (both 64-bit and 32-bit) doesn't add the JRE.  So the question is is it a Sparx EA installation or an infrastructure problem?  The 32-bit OK and 64-bit broken issue would point to the Sparx installation.  But the JRE missing altogether might suggest otherwise.

Does anyone know if the EA installation also adds the JRE if missing?

Flummoxed!
Paolo
« Last Edit: November 08, 2022, 01:02:19 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: V16 - BPSim "Could not find Java Runtime Environment"
« Reply #3 on: November 08, 2022, 02:18:50 pm »
Does anyone know if the EA installation also adds the JRE if missing?
No. EA does not include any copy of Java in its installer.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: V16 - BPSim "Could not find Java Runtime Environment"
« Reply #4 on: November 08, 2022, 10:13:19 pm »
Does anyone know if the EA installation also adds the JRE if missing?
No. EA does not include any copy of Java in its installer.
Thanks, Eve,
For confirming.  I didn't think so from the behaviour.

Do you know where EA 64-bit is looking for the JRE?

For those machines without the JRE, We'll have to install it, I guess.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: V16 - BPSim "Could not find Java Runtime Environment"
« Reply #5 on: November 09, 2022, 08:17:19 am »
It's looking using a registry key that I believe the JRE creates in its installation.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: V16 - BPSim "Could not find Java Runtime Environment"
« Reply #6 on: November 09, 2022, 12:46:59 pm »
It's looking to use a registry key that I believe the JRE creates in its installation.
So it's NOT looking for the same key as 32-bit?  Are you able to identify the key?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: V16 - BPSim "Could not find Java Runtime Environment"
« Reply #7 on: November 09, 2022, 11:45:47 pm »

I installed the latest JRE on all the machines, and both 32-bit and 64-bit now see the JRE.

Code: [Select]
java version "1.8.0_351"
Java(TM) SE Runtime Environment (build 1.8.0_351-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.351-b10, mixed mode)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!