How to save different classpath entries for different applications in the Java Recording option
To record a Java script (Corba, RMI, Jacada, etc.), the user needs to specify the classes to be hooked under the Tools -> Recording Options -> Java Environment Settings: Classpath section.
If the user has different sets of class files to be included for different applications, it becomes inconvenient as the user has to add/remove each class for recording against different application. Is there a file where this classpath related information is saved?
The classpath information in the Recording Log (for Single Protocol) or Generation Log (for Multiple Protocol) is stored in vugen.ini
All the classpath entries specified in the Tools -> Recording Options has an corresponding entry in the vugen.ini file. To modify:
1. Open the vugen.ini file in C:\WinNT directory.
2. Search for the [JavaVM:Options] section.
3. Search for and modify the following section if needed:
a. Java_Env_ClassPath – This represents the list of classes that are selected in the Tools -> Recording Options.
b. Java_Env_ClassPath_Unused – This represents the list of classes that are not selected in the Tools -> Recording Options.
Java_Select_IExplore=c:\program files\internet explorer\iexplore.exe
Java_Env_ClassPath=C:\Program Files\Common Files\Mercury Interactive\SharedFiles\JavaAddin\classes;C:\Program Files\Common Files\Mercury Interactive\SharedFiles\JavaAddin\classes\mic.jar;
If you wish to have a specific list of classes selected for a certain Java application, you can create a vugen.ini file with the relevant entries for "Java_Env_ClassPath" and "Java_Env_ClassPath_Unused" and keep a copy of this. You can then use this file in order to do a recording for that particular application.