Java fern is very hardy, and can be planted on wood, rocks, the substrate or just left to float. Any of those will work fine for it. It will grow well under just about any lighting.
I think it will only grow on wood or porous rock ,like lava rock if you can get it. Quite tricky to attach , if to much pressure on it ,it will break easily.