I want to do remote code debugging. So I ran below command in my remote machine:
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8998,server=y -jar myapp.jar
.
Then I created debug config in eclipse. But I am getting a error in remote machine stating:
Could not find or load main method
I have set the buildpath of eclipse correctly. The jar has the manifest which states the correct main method in jar. Still I am facing this issue. So what am I doing wrong?
Thanks.