Java moss is one of the easiest plants to grow and will attach itself to most anything in the tank. I even have it clinging to the gravel after it has outgrown its wood or rock base

The best thing to do when you first get it, is to tie it with a bit of black thread to the driftwood or rock and it will attach itself in just a week or so. It doesn't have any special requirements and does well in most tanks.