You have to go into NYC either by train, via Jamaica station, or Airporter Bus, at airport, and then to airport, not a direct route. I haven't done it but have taken Airporter and while it can be slow the drivers are helpful. It's around $30, I think. A taxi might do it but would be expensive. It's not a great choice unless have entire day.
You have to go into NYC