To go to Cavtat, simply arrive at Dubrovnik airport, which is 5km away.  Then, you have several possibilities: drive from Dubrovnik along the coast, take the bus (line 10), or the boat (30min)