fruit flies like sweet, rotting, fermenting things, so you could try over-ripe fruit, old wine, stale beer or soda, or apple cider vinegar. "put that in the jar, and cover the jar with plastic wrap and poke a couple of small holes. they can get in and they can't get out," she says.