views:

417

answers:

1

I have a java application running on linux machine.

I run the java application using the following

java myapp -Xdebug -Xrunjdwp:server=y, transport=dt_socket,address=4000, suspend=n

I have opened port 4000 for tcp on this linux machine.

I use eclipse from windows xp machine and try to connect to this application.

I have opened the port in windows also.

Both machines are on the LAN.

What am I doing wrong?

+2  A: 

Try this:

java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n myapp

Two points here:

  1. No spaces in the runjdwp option.
  2. Options come before the class name. Any arguments you have after the class name are arguments to your program!
Chris Jester-Young
Thanks Chris. I can connect to that jvm now.