Can't debug Java program in Intellij IDEA, FATAL ERROR in native method: processing of -javaagent failed


When I click the debug button, the program didn't start and showed me this error, but I doesn't use the kotlin.

Connected to the target VM, address: '', transport: 'socket'
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/Result
    at kotlinx.coroutines.debug.AgentPremain.<clinit>(AgentPremain.kt:24)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(
    at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(
FATAL ERROR in native method: processing of -javaagent failed
Disconnected from the target VM, address: '', transport: 'socket'

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
Comment actions Permalink


It looks like a known problem - .

As a workaround, you can either disable the coroutine agent under Settings/Preferences | Build, Execution, Deployment | Debugger | Data Views | Kotlin or Kotlin plugin. (

Sorry for the problem.

Comment actions Permalink

thanks, I disabled coroutine agent and this worked!


Please sign in to leave a comment.