Skip to content

Consider adding a Postpend to PATH feature in the MSI installer - (Was the MSI overrides klist.exe in system PATH) #560

@Trumeet

Description

@Trumeet

Describe the bug
A clear and concise description of what the bug is.

C:\Users\yta>klist
Credentials cache C:\Users\yta\krb5cc_yta not found.

C:\Users\yta>C:\Windows\System32\klist

Current LogonId is 0:0x315613

Cached Tickets: (6)

#0>     ...

C:\Users\yta>where klist
C:\Program Files\Microsoft\jdk-17.0.8.101-hotspot\bin\klist.exe
C:\Windows\System32\klist.exe

TLDR: The klist.exe in OpenJDK takes higher priority than the system klist command.

Desktop (please complete the following information):

OS & version [e.g. Windows 10, 1822]: Windows 10, 22H2

MSFT Build of OpenJDK Version:

The output from java --version:

openjdk version "17.0.8.1" 2023-08-24 LTS
OpenJDK Runtime Environment Microsoft-8297089 (build 17.0.8.1+1-LTS)
OpenJDK 64-Bit Server VM Microsoft-8297089 (build 17.0.8.1+1-LTS, mixed mode, sharing)

To Reproduce:
Steps to reproduce the behavior:

  1. Install the MSI with admin rights, default options with add to JAVA_HOME
  2. Run klist
  3. CMD prefers the klist.exe in OpenJDK rather than C:\Windows\System32\klist.exe

Expected behavior
A clear and concise description of what you expected to happen.

The installed klist.exe should take lower priority than the Windows klist

Screenshots, Logs etc
If applicable, add screenshots, logs to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions