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

Support MacPorts #59

Open
FranklinYu opened this issue Aug 28, 2019 · 3 comments
Open

Support MacPorts #59

FranklinYu opened this issue Aug 28, 2019 · 3 comments

Comments

@FranklinYu
Copy link
Contributor

FranklinYu commented Aug 28, 2019

MacPorts installs OpenJDK at

/Library/Java/JavaVirtualMachines/openjdk11/

Probably affected part:

NSRange vrange = [outRead rangeOfString:@"jdk1."];
if (vrange.location == NSNotFound) {
// try the changed version layout from version 9 (e.g., jdk-9, zulu-12)
vrange = [outRead rangeOfString:@"-"];
vrange.location += 1;
} else {
// otherwise remove the leading jdk
vrange.location += 3;
}

Note that I have set my $JAVA_HOME at

/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home/

but this isn’t helpful.

Note that this was mentioned in https://bitbucket.org/infinitekind/appbundler/pull-requests/55/extend-refactoring-to-iterate-over/diff but it wasn’t resolved somehow.

@lordigon
Copy link

Same issue related to SDKMAN

@FranklinYu
Copy link
Contributor Author

@lordigon Where does SDKMAN install Java?

@lordigon
Copy link

lordigon commented Sep 8, 2020

In

/Users/youruserid/.sdkman/candidates/java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants