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

bugreport :java.lang.ClassNotFoundException edu.tamu.aser.instrumentation.Instrumentor #29

Open
GenaGeng opened this issue Sep 12, 2020 · 5 comments

Comments

@GenaGeng
Copy link

when I try to run mcr_cmd in the teminal as "./mcr_cmd edu.tamu.aser.tests.TestDeadLock " it will accour like this:
$ ./mcr_cmd edu.tamu.aser.tests.account.AccountTest Running tests from: edu.tamu.aser.tests.account.AccountTest Exception in thread "main" java.lang.ClassNotFoundException: edu.tamu.aser.instrumentation.Instrumentor at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:304) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401) FATAL ERROR in native method: processing of -javaagent failed
I hope can get a solution!

@huangshiyou
Copy link
Collaborator

May I know what JDK version you used? From my test, this bug only occurs when you used jdk 11 or newer versions. You can try jdk 8 which should be fine.

@GenaGeng
Copy link
Author

May I know what JDK version you used? From my test, this bug only occurs when you used jdk 11 or newer versions. You can try jdk 8 which should be fine.

My JDK version is real 8,so I realy don't know why.It always prompts
java.lang.ClassNotFoundException: edu.tamu.aser.instrumentation.Instrumentor

@huangshiyou
Copy link
Collaborator

Can you send me what this command shows? 'java --version' in your terminal.

@GenaGeng
Copy link
Author

Can you send me what this command shows? 'java --version' in your terminal.

image

@bupt01
Copy link

bupt01 commented Jan 3, 2024

I would like to ask, is it possible to use a lower version of Java, such as Java 1.6?

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

3 participants