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.

Oct 10, 2009

Use registry to clean right context menus

Some applications will install his quick launch items in the mouse right click menu, but many of the quicklinks are useless.
So let's begin to clean them and make our computer world clean as white snow.

Type 1: clean right menu item
1, use registry(run regedit.exe)
2, expand [HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers], find the item which you want to remove, like NamipanExt etc., delete it.

Type 2: clean right click new item
1, use registry(run regedit.exe)
2, expand [HKEY_CLASSES_ROOT], ctrl+F, find ShellNew, if you don't need it, rename it to ShellNewOld.

Update on March 17, 2011-
Type 3: clean right click IE item
1, use registry(run regedit.exe)
2, expand [HKEY_CURRENT_USER]\Software\Microsoft\Internet Explorer\MenuExt
Delete something like Thunder... Udown...
Udown? You done.

Update on November 14, 2012
Now a great tool can support this: CCleaner
CCleaner is a tool that can help you clean clean your system, like temporary files  cache etc., fix registry problems, and uninstall/install software etc.

To clean context menu, we can
1. click tools icon
2. Click StartUp area
3, In "Context Menu" we can enable/disable or delete the items.