To remotely debug a Java application, you need to start the application with the java command and the -agentlib:jdwp option.