In the
Silk Performer menu, click
Settings
> System.
Click the
Recorder icon.
The
Recording Profiles page opens.
In the
Application list, select the listed recording profile and click
Edit.
The
Recording Profile dialog box opens.
Click
Java Settings and select the
Manual option button.
Click
OK to close the
Java Settings dialog box.
Customize the startup script.
Open the startup-script file, for example
startMyApp.cmd, in an editor.
Rename the startup-script file, for example to
startMyAppForRecording.cmd.
Insert a call to
perfPrepareJavaRecording.cmd in the
Silk Performer home directory. For example call
C:\Program Files\Silk\Silk Performer20.5\perfPrepareJavaRecording.cmd.
In the startup-script file, replace
java my.rmi.application <parameters> with
java %PERFREC_OPTIONS% my.rmi.application <parameters>, where
my.rmi.application is an example. Thus you add the command-line parameter
%PERFREC_OPTIONS% to the java execution.