title: how to Use jdb to analyze the coredump file
body: <p>There is a coredump file created in one machine, But when i move it to other machine (which have the same java version), use the same command to analyze, it faild.
  the command is like that below,</p>
  
  <pre><code>db -connect sun.jvm.hotspot.jdi.SACoreAttachingConnector:javaExecutable=/home/xxxx/app/jdk1.6.0_31/bin/java,core=core.java.1409350847.30890 
  </code></pre>
  
  <p>and the error message is:</p>
  
  <blockquote>
    <p>java.io.IOException   at
    sun.jvm.hotspot.jdi.SACoreAttachingConnector.attach(SACoreAttachingConnector.java:139)
      at
    com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:358)
      at
    com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)
      at com.sun.tools.example.debug.tty.Env.init(Env.java:64)    at
    com.sun.tools.example.debug.tty.TTY.main(TTY.java:1010) </p>
    
    <p>Caused by:
    java.lang.reflect.InvocationTargetException   at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at<br>
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)     at
    sun.jvm.hotspot.jdi.SACoreAttachingConnector.createVirtualMachine(SACoreAttachingConnector.java:96)
      at
    sun.jvm.hotspot.jdi.SACoreAttachingConnector.attach(SACoreAttachingConnector.java:124)
      ... 4 more </p>
    
    <p>Caused by: sun.jvm.hotspot.debugger.DebuggerException:
    Doesn't appear to be a HotSpot VM (could not find symbol
    "gHotSpotVMTypes" in remote process)  at
    sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:400)   at
    sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:315)    at
    sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:174)    at
    sun.jvm.hotspot.jdi.VirtualMachineImpl.createVirtualMachineForCorefile(VirtualMachineImpl.java:206)
      ... 10 more</p>
  </blockquote>
  
  <p>who can tell me why? Thanks very much.</p>