house fly

JSwat Project

Starting JSwat


There are several options available when starting the program. Most notable is that JSwat can launch the debuggee VM when passed appropriate arguments on the command line.

java com.bluemarsh.jswat.Main
Program should launch as usual.
java -Djava.source.path=/usr/java/src com.bluemarsh.jswat.Main
Program should launch with sourcepath pre-defined. Test this by invoking the 'sourcepath' command and verifying that the output contains /usr/java/src.
java com.bluemarsh.jswat.Main -classic
Program will start and be confused by the lack of classname to be debugged. It should report an error saying the classname is missing.
java com.bluemarsh.jswat.Main <class>
Program will start and launch a debuggee VM to run the specified class.
java com.bluemarsh.jswat.Main -classic <class>
Program will start and launch a debuggee VM, with the Classic VM, to run the specified class.
java com.bluemarsh.jswat.Main <class> <arg1> <arg2> <arg3>
Program will start and launch a debuggee VM to run the specified class, passing the given arguments to the loaded class.

JSwat supports more than one interface mode. At present the program defaults to running with a graphical interface based on the JFC component set. In addition, the program can be made to run within a console, without any graphical interface at all. This mode is invoked with the '-console' switch. It must be the first switch following the JSwat "Main" class name. Use the following test cases to test the console-only mode of the program.

java com.bluemarsh.jswat.Main -console
Program should launch into console mode.
java -Djava.source.path=/usr/java/src com.bluemarsh.jswat.Main -console
Program should launch with sourcepath pre-defined. Test this by invoking the 'sourcepath' command and verifying that the output contains /usr/java/src.
java com.bluemarsh.jswat.Main -console -classic
Program will start and be confused by the lack of classname to be debugged. It should report an error saying the classname is missing.
java com.bluemarsh.jswat.Main -console <class>
Program will start and launch a debuggee VM to run the specified class.
java com.bluemarsh.jswat.Main -console -classic <class>
Program will start and launch a debuggee VM, with the Classic VM, to run the specified class.
java com.bluemarsh.jswat.Main -console <class> <arg1> <arg2> <arg3>
Program will start and launch a debuggee VM to run the specified class, passing the given arguments to the loaded class.


Back