Possible Duplicate:
How can I install Sun/Oracle's proprietary Java 6/7 JRE or JDK?
I am new to Linux and i used instruction specified in Oracle's documentation on how to install Java on Linux. Now when i checked with Java -version i got invalid command message.
After searching in different directories i found java directories in Downloads folder. Please suggest what should i do a new install or any other option?