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

Stack Overflow | Kartik | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 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
  2. 0

    Unable to mock static invocations using JMockit

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

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

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

    Automated exception search integrated into your IDE

  5. 0

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

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

  1. Adrien 6 times, last 3 weeks ago
  2. PKeidel 9 times, last 1 month ago
  3. rafael 2 times, last 1 month ago
  4. Reich 7 times, last 2 months ago
  5. gamebusterz 1 times, last 2 months ago
31 more registered users
64 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
    Startup.initializeIfPossible
    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)
    4 frames
  5. JUnit
    ClassRequest.getRunner
    1. org.junit.runner.Runner.<clinit>(Runner.java:22)
    2. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:61)
    3. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
    4. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
    5. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
    5 frames
  6. 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
  7. 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