Search This Blog

Sunday, March 7, 2010

Debug Independent JAVA applications remotely with ECLIPSE

I have to debug independent batch process with Eclipse so I did following steps for this configuration:

Step1 : run your program using bat or sh file with following args ..

java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address="8000" com.test.TestMain

Now your java program or application will run on port 8000 as server

Step 2 :

Open debug into Eclipse then launch remote application
and set project , host as 127.0.0.1 and port 8000.

Then your app is ready to debug with Eclipse :)

cheers

No comments:

Post a Comment

Thanks for your comment, will revert as soon as we read it.

Popular Posts