It is going to have a real hard time gripping onto it if it does at all. Often if you want it on a smooth rock people take something like a fine mesh and put it over the java on the rock. Or you can try using GEL super glue on the rock that has been dried and glue on a lot of small clumps so the moss can sort of use itself (the glued part) as a base to grow and attach to.