Using C:\Program Files\jEdit\jedit.exe I see the following dialog:
This application requires a Java Runtime Environment 1.8.0 The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted
and after clicking OK, my web browser takes me to https://www.java.com/en/download/
Using C:\Program Files\jEdit\jedit.jar, jEdit is launching and working perfectly.
My Oracle JDK is installed at C:\Program Files\Java\jdk-11.0.1 and I don't have any other JDK or JRE installed. Using Windows 10. jEdit 5.5.0. I can also reproduce the same behaviour on my personal machine (same OS, jEdit and JDK versions) so I don't think it's a bad installation.
Ticket moved from /p/jedit/jeditlauncher-bugs/49/
I updated the EXE launcher for the next release with an up-to-date version that should probably work yesterday. Would you mind replacing jedit.exe with the attached one and test? If it doesn't find the installed Java via registry, the launcher now also considers the
JAVA_HOME
environment variable as fallback.Works for me.
This works for me - and I don't even have JAVA_HOME set in the environment.
Works for me also (with Redhat OpenJDK) :-)
JAVA_HOME is not set
For me it works (after some tweaking) by first setting the Java 11 bin as first on the PATH and by setting JAVA_HOME in the starting batch file like this
set PATH=C:\java\jdk-11.0.9\bin;%PATH%
set JAVA_HOME=C:\java\jdk-11.0.9
start C:\PROGRA~1\Jedit\jedit.exe %*