-
Notifications
You must be signed in to change notification settings - Fork 239
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
get java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while run the test #710
Comments
difference between zulu8 and openjdk8: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f754ada66386
|
Thanks @VladimirKempik . |
did you find another way to fix it pls? I met the same issue, but our prod use openjdk8, so can't switch to use ojdk. |
there is no evidence that 8157236 was backported into openjdk8, it's strange you have the same issue |
Actually,I did find a way to solve this issue. Maybe it is useful for you. So,what I did is :
Further more,i used the .dmg package , but I don't know why it didn't create $JAVA_HOME automatically. |
I have encountered the same problem. |
There was just one install file. plz just download the .dmg file and install it manually.And then, declare the variable $JAVA_HOME in your .zsh config file. I see the latest version is jdk-8u321-macosx-x64.dmg |
I solved this problem. |
Hi,everyone.
I was trying to execute " mvn clean test " to verify a simple maven project which was generated by "mvn archetype:generate".I just to want learning how to write unit test.But I got an exception , after a long time debug and trying , I don't know how to continue,please give me some advice.
Because I don't know what's wrong, so I will try to give as much info as I can.
os:
jdk:
maven:
apache-maven-3.8.1(I also tried 3.6.3)
pom.xml:
main java code :
test java code:
stack trace info:
what I have tried:
I tried to debug and I got this in class BsdVirtualMachine.class
and it invoke in ClassLoader.class :
It seems a native method createAttachFile(String path) tried to create a file ,and the ClassLoader was trying to load this native method from local, but it can not find this method in /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre/lib/libattach.dylib ( I find this by debuging).
with zulujdk's official engineer's help, I found maybe jmockit-1.36.jar is not compatible with m1 chip? or am I wrong?
I tried the same os, same chip ,only difference is jdk is native oracle jdk-1.8.0,and this jdk was transferred from my old Mac.Because some jmp bugs, I quit it and try the zulujdk.
I will paste the log file of command (mvn -X clean test )below:
test1.log
The text was updated successfully, but these errors were encountered: