How to send mail from Java in linux enviroment

view story

http://stackoverflow.com – I have successfully sent mail from java using apache james server in Windows. I have been trying to do the same in Linux, but couldn't start the james server. I am a novoice in Linux. Is james server really necessary for sending mails. If so how to start james server in kinux. (HowTos)