Nov 12, 2009

ClearCase Delete Stream on the Server

Thanks my colleague- Heberling, John
He wrote a very helpful script.

Here are the steps:
1, Delete the local view in CCRC
2, use the script /h/clearadm/desc_stream.ksh zhang5_NPAT_R2_4_SP_SPR2 /neo/neoview_pv to see whether there are views or other dependencies on it. Only when all the views or dependencies are deleted, you can delete the stream.
3, use /h/clearadm/rmstream.ksh zhang5_NPAT_R2_4_SP_SPR2 /neo/neoview_pv to delete stream. It will prompt confirmation, you could type in yes.

More details:
a) desc_stream.ksh is the script to run this command:
"cleartool desc stream:zhang5_NPAT_R2_4_SP_SPR@/neo/neoview_pv", because @ sign can't be input in the system.
b) to use the command cleartool, you should add /opt/rational/clearcase/bin to the path. export PATH="/opt/rational/clearcase/bin:$PATH"
c) to log on server, we use: telnet servername..., for example, telnet cacview1, and then logon with your ClearCase user ID and password.

rmstream.ksh is the script to run this command:
cleartool rmstream zhang5_NPAT_R2_4_SP_SPR@/neo/neoview_pv

Nov 3, 2009

IBM Rational ClearCase Remote Client Language Settings

Language problem for CCRC-
IBM ClearCase Remote Client gets the location settings of the computer from control panel settings, so if in control panel settings, you are in China, the CCRC will launch as a Chinese version, but how can I use the English version?
Here is the method:

Start->All Programs->IBM Rational-> Right click the icon of CCRC,
add -Duser.language=en_US, then the whole string looks like

"C:\Program Files\IBM\Rational\ClearCase701\CCRC\ccrc.exe" -vmargs -Xj9 -Duser.language=en_US

Then it works in English version.

Oct 26, 2009

How to Solve Ant Error - Unable to locate tools.jar

The problem is: Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar

Step 1: set JAVA_HOME environment variable to your JDK install directory

Step 2: restart cmd window, the windows doesn’t recognize it before cmd window is restarted.

How to install ant

1.First,You must have JDK installed first.

2.Get the ANT for windows here:
http://ant.apache.org/bindownload.cgi, choose latest version with zip package

3.After download ANT,extract zip package in (for example) C:\Program Files\Apache\Ant


4.Set ANT_HOME

■Right click My Computer icon
■Choose properties
■Choose Advanced Tab
■Choose Environtmen Variables Button
■In the System Variables, click New Button
■Give the Variable Name:ANT_HOME
Give the Value: C:\Program Files\Apache\Ant
■Click OK
Then,we’ll add new ANT_HOME path,

Find PATH in the Variable Column in System variables frame

■After found, click Edit button
■Then, add the following text in the bottom of Variable value:
%ANT_HOME%\bin;

■Click OK to finish
5.Check wheter ANT works correctly or not.
In the command prompt, type:

ant -version

if the result text is something like:

Apache Ant version 1.7.1 compiled on June 27 2008 then your ANT is work correctly on your Windows

6.The end.

Oct 20, 2009

Delete AliWangWang Right Extention

Regedit 32
Delete

HKEY_CLASSES_ROOT\CLSID\{0DE1378D-F811-40E6-B60A-1CC56F57D3E9}\InprocServer32 The items contain aliimext.dll.

If ali wangwang updates, you need to repeat this.