The easiest way to come to the cable car is from the Old Town of Dubrovnik. On the northern side of the town there is Buža Street which leads you towards the exit from the city walls.
From there you need to keep climbing towards the fireman station. Once you are at the fireman station, you need to cross the street on your right hand side and keep going straight.
After few moments you will see cable car station on your right hand side.
Click to to better view real location