Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Java on macosx apple scilicon is installed as a bundle, path to java is incorrect #101

Open
kdhans opened this issue Apr 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kdhans
Copy link

kdhans commented Apr 29, 2024

Describe the bug
When running the app, the launcher looks for the java executable in /(game directory)/(java runtime directory)/bin/java, but it needs to point to /(game directory)/(java runtime directory)/jre.bundle/Contents/Home/bin/java

Current workaround is checking if the user is using a mac with apple silicon, then performing the following code right before the process starts:
process.StartInfo.FileName = process.StartInfo.FileName.Replace("/bin/java", "/jre.bundle/Contents/Home/bin/java")

Doing this filename fix launches the app correctly on mac.

Environment (please complete the following information):

  • OS: macosx Sonoma 14.4.1
  • CmlLib.Core Version: 3.3.10
  • .NET version: .net6.0
@kdhans kdhans added the bug Something isn't working label Apr 29, 2024
@AlphaBs
Copy link
Member

AlphaBs commented May 5, 2024

thanks for reporting thr issue. I'll test this on a real macOS device later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants