JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]

Notice the following start up parameter in your post.

-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n 

There must be some other process occupied the 8787 port.


The 8787 port is already in use. If the 8787 port in use by another application, you need to select a different port number in file run.bat For example, 18787


ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) from "JAVA_OPTS: address=8787"

You set Address 8787

  1. Find the PID

    netstat -ap | grep 8787
    
  2. If you still see the PID with the above command, then there are child PIDs. To find the child PIDs

    pstree -p 
    

    and

    pstree -p  | grep previousPID
    
  3. Find the groupPID of the PID

    ps x -o "%r %p %y %x %c" 
    
  4. Kill the found PID

    kill -TERM -groupPID