How to make a Java service in Linux and Solaris??

i want also to start the program at startup.........

Please reply as soon as possible...