I had a lucky bamboo for about 5 years now. Or rather, three, as the are each individual plants.
I put them in a glass vase with small stones and water. They are standing on a shelf near a window although they get hardly any direct sunlight, and even then only for half the day. They grew a few shoots over the years but that was about all. Recently one of them dried out and died so I removed it but the others are still green.
It seems the most important thing is to avoid direct sunlight and keep the water level slightly above the level of the growing medium.