We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6b1cb commit c0ddd8bCopy full SHA for c0ddd8b
1 file changed
.github/workflows/reproduce-issue-7.yml
@@ -60,9 +60,15 @@ jobs:
60
# ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider:
61
# Provider sun.tools.attach.WindowsAttachProvider could not be instantiated
62
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
+
68
$java = "$env:STANDALONE_JRE\bin\java.exe"
69
$jar = (Get-ChildItem target\extract-tls-secrets-*.jar)[0].FullName
-
70
71
+ Write-Host "PATH: $env:PATH"
72
Write-Host "java.exe : $java (standalone JRE - no attach.dll)"
73
Write-Host "JAVA_HOME: $env:JAVA_HOME (JDK - has tools.jar)"
74
Write-Host "jar : $jar"
0 commit comments