You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Server powershell startup doesn't accept some Java 17 versions #394
I swear this was working for me earlier and I don't see any changes, so I am wondering if I am missing something here. But I will document in case it is new
Describe the bug
The Windows PowerShell launcher incorrectly rejects a valid Java 17 executable supplied through OIE_JAVA_PATH or JAVA_HOME.
The issue is consistently reproducible when launching the development server with a valid Java 17 installation.
The launcher should recognize the Java executable as valid and start the Open Integration Engine server.
Actual behavior
The launcher exits with:
'C:\Program Files\Eclipse Adoptium\jdk-17.0.18.8-hotspot\bin\java.exe'
is specified by the OIE_JAVA_PATH environment variable, which is not a valid
Java executable of at least version 17. Exiting.
The executable exists and successfully reports:
openjdk version "17.0.18"
Screenshots
Not applicable. The complete error is available in the PowerShell output.
I came to the conclusion that it's a PowerShell version issue: "PowerShell 7 doesn't turn native stderr into a terminating error the same way, so the version parse runs and sees your 25.0.4. This script is clearly written for PowerShell 7 anyway — it uses $env:HOME, tilde expansion, and [System.IO.Path] constructs aimed at cross-platform pwsh — so 5.1 was never really the intended host. When you launch .\oieserver.ps1 from a normal Windows console it defaults to 5.1, which is how you ended up here."
My 2022 box has default PS 5.1. How I fixed it (line 145)
Activity
kryskool commentedon Aug 24, 2026
Hi @eddcomeau
After you declare your environment variable can you try to launch this command
Regards,
discofris commentedon Aug 26, 2026
I came to the conclusion that it's a PowerShell version issue:
"PowerShell 7 doesn't turn native stderr into a terminating error the same way, so the version parse runs and sees your 25.0.4. This script is clearly written for PowerShell 7 anyway — it uses $env:HOME, tilde expansion, and [System.IO.Path] constructs aimed at cross-platform pwsh — so 5.1 was never really the intended host. When you launch .\oieserver.ps1 from a normal Windows console it defaults to 5.1, which is how you ended up here."
My 2022 box has default PS 5.1. How I fixed it (line 145)
Another fix would be to install PowerShell 7.
So oieserver.ps1 works now, but oieserver.exe does not.
Fix compatibility with Powershell 5.1
jonbartels commentedon Aug 26, 2026
#419 @eddcomeau @kryskool and @discofris
Can you try this PR and see if it solves the issue? You can leave a PR review with your feedback
Fix compatibility with Powershell 5.1