Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8334433

jshell.exe runs an executable test.exe on startup

XMLWordPrintable

    • b05
    • generic
    • generic

        ADDITIONAL SYSTEM INFORMATION :
        Tested on Windows 11 OpenJDK 23 build 27/26

        A DESCRIPTION OF THE PROBLEM :
        When jshell.exe starts it launches any executable called "test.exe" that is in the Path

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Setup path and verify no version of test.exe is in your path:
        set Path=C:\java\jdk-23\bin
        test.exe
        => Reports 'test.exe' is not recognized as an internal or external command,
        operable program or batch file.
        Then setup Path with any executable as test.exe: I just copied Notepad++.exe to a new folder:
        > mkdir c:\Temp\abc
        > copy "\Program Files\Notepad++\notepad++.exe" c:\Temp\abc
        > set Path=C:\java\jdk-23\bin;c:\Temp\abc
        > jshell


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Notepad++should not be launched each time I run jshell.exe.
        Works as expected in JDK22
        ACTUAL -
        In JDK23 jshell launches Notepad++ (or whatever was copied as test.exe in the path).

        CUSTOMER SUBMITTED WORKAROUND :
        Remove all executables called "test.exe" from the Path

        FREQUENCY : always


              jlahoda Jan Lahoda
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: