Just use any java IDE which supports the java debugger(e.g. Jetbrains IDEA 8.x). Connect to remote VM using remote app debugger in using socket connection. Then compile that individual class from IDE that will hotswap the class in debugged VM. You can also use JSwat debugger for GUI debugging.