How to save different classpath entries for different applications in the Java Recording option

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.
Example:
[JavaVM:Options]
Mic_ClassLoader=0
Java_Select_IExplore=c:\program files\internet explorer\iexplore.exe
Java_SaveParams=0
Java_Classic=0
Java_Prepend_Classpath=0
Java_VM_Params=
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;
Java_Env_ClassPath_Unused=

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s