Skip to content

Commit c0ddd8b

Browse files
committed
path
1 parent 7c6b1cb commit c0ddd8b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/reproduce-issue-7.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,15 @@ jobs:
6060
# ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider:
6161
# Provider sun.tools.attach.WindowsAttachProvider could not be instantiated
6262
run: |
63+
# Remove all JDK bin directories from PATH so java.library.path
64+
# also can't find any attach.dll as a fallback
65+
$env:PATH = ($env:PATH -split ';' |
66+
Where-Object { $_ -notmatch 'jdk|jre|java|hostedtoolcache' }) -join ';'
67+
6368
$java = "$env:STANDALONE_JRE\bin\java.exe"
6469
$jar = (Get-ChildItem target\extract-tls-secrets-*.jar)[0].FullName
65-
70+
71+
Write-Host "PATH: $env:PATH"
6672
Write-Host "java.exe : $java (standalone JRE - no attach.dll)"
6773
Write-Host "JAVA_HOME: $env:JAVA_HOME (JDK - has tools.jar)"
6874
Write-Host "jar : $jar"

0 commit comments

Comments
 (0)