If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.

#2452 FFDec exe files fail to find Java installations (due to having updated?)
Author:
Eiim

Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: Loader
State: closed 

I opened FFDec for the first time in a little while today, and it said it couldn't find a
JRE for Java 8 or newer. That's odd, as I have a bunch of JREs and JDKs on my computer. In
particular, both the main java.exe on the path and JAVA_HOME point to a Java 21 JDK
installation at C:\Program Files\Eclipse Adoptium\jdk-21.0.5+11. Indeed, when running the
.bat file, it seems to use that version just fine, and of course I can invoke it with java
-jar ffdec.jar just fine as well. However, both ffdec.exe and ffdec-cli.exe give the error
that it can't find Java 8. Pulling up the Sysinternals Process Monitor, I see that it's
probing for installations at C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot,
C:\Program Files\Eclipse Adoptium\jdk-21.0.2.13-hotspot, and C:\Program Files
(x86)\Java\jre1.8.0_431. None of those are on the path or any other environment variable,
but I know at least the Java 8 one used to be a JRE I had, and I think the other two used
to be installed as well. I'm guessing it's using some cached path for Java, but I can't
figure out where it's specified to change it. Maybe this is really just a Question, but I
think it should keep working when Java is moved or updated as long as the environment
variables are configured properly.
I forgot to mention - I tried updating 22.0.2 and that didn't change anything.
Also no change in 22.0.2 nightly 3100, since that just released.
What does it print out when you run
C:\Program Files\Eclipse Adoptium\jdk-21.0.5+11\bin\java.exe -version
?
openjdk version "21.0.5" 2024-10-15 LTS
OpenJDK Runtime Environment Temurin-21.0.5+11 (build 21.0.5+11-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.5+11 (build 21.0.5+11-LTS, mixed mode, sharing)
Please run regedit.exe (Registry editor)
and export key "HKEY_LOCAL_MACHINE\SOFTWARE\Eclipse Adoptium" to a .reg file
and attach it here.
Ah, that looks like it might be the issue. I'll attach it here anyways. I'm not sure where
the 1.8 install would be coming from though.

It seems that the Adoptium jdk-21.0.5+11 is not listed in the registry,
maybe it is not correctly installed (?).
We use launch5j as a EXE launcher for Java,
which looks primarily in the registry to search for Javas,
it seems that it does not check JAVA_HOME variable.
Adoptium jdk-21.0.5+11 is not present in your registry,
so it would probably need a reinstall,
could you check it?
Yep, I fixed the registry and that's fixed it. Thanks!
You're welcome.
State: new→closed