This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Some remarks: we don't know how experienced you are with java and linux, so you need to give us more details, what you know how to do, and what not.
Is java already installed? Sometimes it is. Test it with
else, go to suns webpage, download a linux-java, and install like described on the sun pages.
I wouldn't click on the bin file, like Anand told you, because you might not get - hopefully not - occuring errormessages, because the window closes after finishing. Run if you took the bin.tar.bz2 file, and extracted it.
Don't echo noise
because it may be hindering, if you want to process the output of your program. Rule: silent is golden.
Don't include the java-bin in your classpath. Instead, specify in /etc/profile if you're working on a single-user machine, and
When problems with databases occur, tell us. Don't set the classpath, if you don't need to.