Installing Java on Ubuntu

Some commands that you need to know during installing Java on Linux environment:
1) Get the installation package from this command:

sudo apt-get install sun-java-6-jdk

2) Check java version

java -version

3) Check location of installed jdk

sudo update-java-alternatives -l

4)Set default java

sudo update -java-alternatives -s java-6-sun

5) Set JAVA_HOME based on location

export JAVA_HOME=/usr/lib/jvm/java-6-sun

6) Set all the environment path in /etc/environment

JAVA_HOME=/usr/lib/jvm/java

7) Set in [...]

Firefox ASSERT: *** Search: _installLocation: engine has no file!

After performing an update in Firefox, whatever searches that I tried in google will shows popup with the following error message:
ASSERT: *** Search: _installLocation: engine has no file!
Stack Trace:
0:ENSURE_WARN(false,_installLocation: engine has no file!,2147500037)
1:()
2:()
3:()
4:epsGetAttr([object Object],alias)
5:()
6:SRCH_SVC_getEngineByAlias(http://www.google.com.au/search?q=how+to+include+user+as+a+root+in+Ubuntu%3F&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a)
7:getEngineByAlias(http://www.google.com.au/search?q=how+to+include+user+as+a+root+in+Ubuntu%3F&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a)
8:getShortcutOrURI(http://www.google.com.au/search?q=how+to+include+user+as+a+root+in+Ubuntu%3F&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a,[object Object])
9:canonizeUrl(null,[object Object])
10:handleURLBarCommand(null)
11:anonymous(textentered,null)
12:fireEvent(textentered,null)
13:onTextEntered()
14:handleEnter(true)
15:onPopupClick([object MouseEvent])
16:onxblmouseup([object MouseEvent])

Affect
Whatever URL links and pages will not be able to opened up and will be prompted with a [...]