Menu

#4084 Launcher doesn't find JDK 11.0.1

minor bug
closed-fixed
None
5
2022-04-30
2019-08-15
Ben Golding
No

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.

Discussion

  • Björn Kautler

    Björn Kautler - 2019-08-15

    Ticket moved from /p/jedit/jeditlauncher-bugs/49/

     
  • Björn Kautler

    Björn Kautler - 2019-08-15

    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.

     
    • ErroneousBee

      ErroneousBee - 2019-08-23

      Works for me.

       
  • Björn Kautler

    Björn Kautler - 2019-08-15
    • status: open --> closed-fixed
    • assigned_to: Björn Kautler
    • Group: --> minor bug
     
  • Ben Golding

    Ben Golding - 2019-08-15

    This works for me - and I don't even have JAVA_HOME set in the environment.

     
  • Heklaz

    Heklaz - 2019-08-28

    Works for me also (with Redhat OpenJDK) :-)
    JAVA_HOME is not set

     
  • Iván József Balázs

    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 %*

     

Log in to post a comment.