Java configuration

From Petr Sladek

Jump to: navigation, search

Petr Sladek set up Java dev env

Petr Sladek works in Java a lot, so here comes a summary of tools Petr Sladek uses in his development environment...

eclipse setup

remote debug in eclipse

Go to menu: Run -> Debug Configurations and create a new configuration in Remote Java Application. Make sure the port settings you choose is the same as the one you added in the remote debugging.

remote debugging in InteliJ IDEA

to your '.mavenrc' file add this line:

export MAVEN_OPTS="-Xms128m -Xmx2048m -XX:MaxPermSize=1536m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

in IDEA, Run/Debug - Edit Configurations - Remote: Command line arguments:


For JDK 1.4.x:

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

For JDK 1.3.x:

-Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

and set Port to: 8000

Personal tools