Hi,
it's difficult to get from Bilbao to SJPP by train. It's easier to take the bus from Bilbao to Irun (check http://www.alsa.es, they got 4 departures every day).
Take the euskotren from Irun to Hendaye. It's a short 5-10 min ride across the Spanish/French border. From Hendaye you can take...