Setting the Classpath of a VM launched using JDI

I using VirtualMachineManager to get a LauchingConnector and fire off a new VM.It seems that there should be some way of me setting the classpath for this new VM.In general I'd like a list of the options that I can put in that argument map.
[262 byte] By [Alistair_Hutton] at [2007-9-30 17:36:44]
# 1

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

rod37rod at 2007-7-6 14:05:11 > top of Java-index,Archived Forums,Debugging Tools and Techniques...