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

Doesn't work with JDK 12 #5

Closed
thiru opened this issue Jul 4, 2019 · 6 comments
Closed

Doesn't work with JDK 12 #5

thiru opened this issue Jul 4, 2019 · 6 comments

Comments

@thiru
Copy link

thiru commented Jul 4, 2019

OS: Arch Linux
openjdk version "12.0.1" 2019-04-16
OpenJDK Runtime Environment (build 12.0.1+12)
OpenJDK 64-Bit Server VM (build 12.0.1+12, mixed mode)

I get the following error when evaluating (mm/measure []):

java.lang.UnsatisfiedLinkError: no attach in java.library.path: [/usr/java/packages/lib, /usr/lib64, /lib64, /lib, /usr/lib]
java.lang.reflect.InvocationTargetException:

It does work with JDK 10.

@alexander-yakushev
Copy link
Member

Hi! Do you use -Djdk.attach.allowAttachSelf flag?

@thiru
Copy link
Author

thiru commented Jul 4, 2019

Yup I did. Without that it wouldn't work for me using JDK 10.

@alexander-yakushev
Copy link
Member

Interesting. It works for me on JDK12 for almost that exact version. But I use the AdoptOpenJDK build on MacOS.

openjdk version "12.0.1" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.1+12)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.1+12, mixed mode, sharing)

Could you please paste the whole stacktrace (from (pst) or *e)?

@alexander-yakushev
Copy link
Member

alexander-yakushev commented Jul 4, 2019

I googled the error, people had similar issues before when they were missing tools.jar in their JDK, or something was not on PATH, etc. Try googling around for clues, maybe one of the solutions will work for you.

@thiru
Copy link
Author

thiru commented Jul 6, 2019

Yeah you're right this isn't an issue with your library but with my install of Java on my work PC. With JDK 12 on home PC (also Arch Linux with JDK 12) it works fine. It may have to do with having multiple installs of Java on Arch.

Thanks for you help and your libraries!

@thiru thiru closed this as completed Jul 6, 2019
@alexander-yakushev
Copy link
Member

Cool, thanks for the update!

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

No branches or pull requests

2 participants