In J2SE 5.0, jdb has a new option that will list the available connectors and the arguments that can be passed to them EG:
jdb -listconnectors
Available connectors are:
Connector: com.sun.jdi.CommandLineLaunch Transport: dt_socket
description: Launches target using Sun Java VM command line and attaches to it
Argument: home Default value: /net/foo/p/jdk/1.5.0/jre
description: Home directory of the SDK or runtime environment used to launch the application
Argument: options (no default)
description: Launched VM options
Required Argument: main (no default)
description: Main class and arguments, or if -jar is an option, the main jar file and arguments
Argument: suspend Default value: true
description: All threads will be suspended before execution of main
Required Argument: quote Default value: "
description: Character used to combine space-delimited text into a single command line argument
Required Argument: vmexec Default value: java
description: Name of the Java VM launcher
:
:
This means that you would want to put "-classpath ......" into the 'options' argument.
Hope this helps