You do not have to exchange a valid licence issued in an EEA member state.
For a valid licence issued outside the EEA, if you have been granted temporary or permanent residence, the one-year period is counted from entry into Croatia. After that you must exchange it for a Croatian licence.
A foreigner staying in Croatia may drive on a valid foreign driving licence, subject to reciprocity. An international driving permit is not required in that case. Before you drive, check with the Ministry of the Interior whether this applies to a licence issued in your country.
On the Ministry of the Interior page, check which documents you need to enclose and how much it costs to exchange a driving licence.
Check the documents and the fee for the exchange
More detail
A foreign licence for categories D1 and D is not recognised for a person under 24, for category C under 21, and for categories C1 and B under 18.