OK, i hope this helps. Java ferns aren't real bright light plants, so thats probably OK. But I can't grow them at all in my tank, and I have amazing plants:

My problem is my tank is VERY soft, with a slightly lower
pH (around 6.0-6.5), and it turns out Java ferns like the water a bit on the hard side and a neutral to higher pH (7.0-7.5)
Also, are your ferns attached to a seasoned piece of
driftwood or rock? This is how they grow, by attaching their ryzome (the little brown root bulb looking thing) to a piece of wood or rock. If you plant that part underground (undergravel??) it will eventually die.