java.lang.IllegalStateException: Native library for Attach API not available in this JRE

Stack Overflow | SteveK | 2 years ago
  1. 0

    Exception thrown while running JUnit tests using maven

    Stack Overflow | 4 years ago
    java.lang.IllegalStateException: Native library for Attach API not available in this JRE
  2. 0

    【JUnit】【Mock】 JMockit 〜入門編〜 ( ソフトウェア ) - プログラム の個人的なメモ - Yahoo!ブログ

    co.jp | 1 year ago
    java.lang.IllegalStateException: Native library for Attach API not available in this JRE
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Unable to mock static invocations using JMockit

    dolinked.com | 1 year ago
    java.lang.IllegalStateException: Native library for Attach API not available in this JRE
  5. 0

    JMockit ERROR - Native library for Attach API not available in this JRE

    Stack Overflow | 2 years ago | SteveK
    java.lang.IllegalStateException: Native library for Attach API not available in this JRE

  1. filpgame 1 times, last 3 weeks ago
  2. rp 3 times, last 3 weeks ago
  3. franky li 4 times, last 1 month ago
  4. ajinkya_w 21 times, last 1 month ago
  5. serious2monkeys 12 times, last 2 months ago
26 more registered users
69 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    no attach in java.library.path

    at java.lang.ClassLoader.loadLibrary()
  2. Java RT
    System.loadLibrary
    1. java.lang.ClassLoader.loadLibrary(Unknown Source)
    2. java.lang.Runtime.loadLibrary0(Unknown Source)
    3. java.lang.System.loadLibrary(Unknown Source)
    3 frames
  3. Java Tools
    WindowsVirtualMachine.<clinit>
    1. sun.tools.attach.WindowsVirtualMachine.<clinit>(WindowsVirtualMachine.java:185)
    1 frame
  4. Main
    JMockit.<clinit>
    1. mockit.internal.startup.AgentLoader.getVirtualMachineImplementationFromEmbeddedOnes(AgentLoader.java:66)
    2. mockit.internal.startup.AgentLoader.loadAgent(AgentLoader.java:47)
    3. mockit.internal.startup.AgentInitialization.loadAgentFromLocalJarFile(AgentInitialization.java:27)
    4. mockit.internal.startup.Startup.initializeIfPossible(Startup.java:252)
    5. mockit.integration.junit4.JMockit.<clinit>(JMockit.java:21)
    5 frames
  5. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  6. JUnit
    ClassRequest.getRunner
    1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
    2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
    3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
    5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
    6 frames
  7. JUnit4 Runner
    JUnit4TestLoader.loadTests
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
    2. org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
    3. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
    4. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
    4 frames
  8. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    4 frames