Closed codemanyak closed 10 months ago
@Manoroc1
I'd like to ask you to check the existence (and contents) of the registry keys specified in issue #1100 (or the User Guide) and for the content of the environment variable JAVA_HOME
.
i have no clue what you want me to do
@Manoroc1
You wrote that you ticked the JAVA_HOME variable option on installing Java.
May I ask you to report us what path the environment variable contains (echo %JAVA_HOME%
at the cmd.exe console)?
Another important check structorizer.exe
performs in order to find out whether a suited Java installation is in place concerns the following registry keys:
HKLM\SOFTWARE\JavaSoft\Java Runtime Environment
;HKLM\SOFTWARE\JavaSoft\JRE
;HKLM\SOFTWARE\JavaSoft\Java Development Kit
;HKLM\SOFTWARE\JavaSoft\JDK
.Would you mind checking if any of these registry entries is configured in your system and, if so, what version information they hold? Actually, I suspect that either these settings are missing or an older Java installation (e.g. 1.8.something) is interfering.
C:\Users\fabrk>echo %JAVA_HOME% %JAVA_HOME% thats what console gives out, and if i enter the other things there it tells me it cant find the path.
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_401 Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\11.401.2 Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\11.401.2 Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start Caps\11.401.2 Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\21.0.2
is that what you need?
@Manoroc1
is that what you need?
Oh yes, it is. And, lo and behold, you have the traces of at least three different Java versions (1.8 = 8, 11, and 21) in the registry of your machine. Unfortunately, the Java launcher embedded in Structorizer.exe fishes for Java registry entries in a sequential manner (rather than choosing the highest available Java version), so it first crosses the JRE (Java Runtime Environment) entry (the first one in your list) und therefore runs into the Java 1.8.0_401 trap (i.e., an outdated Java 8 installation, which is not sufficient to run Structorizer). The JDK is only probed if there is no JRE. Structorizer detects the insufficiency of the underlying Java virtual machine and aborts.
Moreover, the JAVA_HOME
environment variable has obviously not been set, otherwise the output of the echo command would have been one of the installation paths (e.g. C:\Program Files\Eclipse Adoptium\jdk-21.0.1.12-hotspot\
), depending on your actual installations.
You might try to set the environment variable JAVA_HOME (via the system settings) to the respective Java 21 path, i.e., the path of the folder where the bin
folder is localised. If this doesn't help (because perhaps the registry keys have priority over JAVA_HOME) then you will have to consider the uninstallation of the Java 1.8 JRE.
I just uninstalled java 8 and it worked 😆 Ty alot
I installed Java several times but structorizer still tells me it can't start without at least java 11....
Originally posted by @Manoroc1 in https://github.com/fesch/Structorizer.Desktop/discussions/1106#discussioncomment-8165681