A construction machine comprising: a cab; an air conditioning unit having a capacitor, a compressor, an evaporator, a blower fan, and an air conditioning duct, the compressor connected to the capacitor, the evaporator connected to the capacitor and the compressor, the blower fan configured to blow a wind to the evaporator, the air conditioning duct communicating from the evaporator to inside the cab; a cooling fan configured to cool the capacitor; an air conditioning switch configured to receive operation or non-operation of the compressor; a temperature setting section configured to set a set temperature inside the cab; a radiator configured to cool a refrigerant which circulates in an engine; a pipe connected to the radiator, the pipe configured to flow the refrigerant; and a hydraulic pump configured to drive the cooling fan; wherein the hydraulic pump has a swash plate for adjusting an amount of oil which is sent to the cooling fan; characterized by a room temperature sensor configured to detect a room temperature inside the cab; and a controller configured to adjust so that a rotation amount of the cooling fan is maintained at a predetermined rotation amount or more when operation is selected in the air conditioning switch and the room temperature inside the cab is higher than the set temperature wherein a portion of the pipe is arranged inside an air conditioning duct, and wherein the controller is further configured to set an angle of the swash plate of the hydraulic pump to a minimum when non-operation is selected in the air conditioning switch or when the room temperature inside the cab is not higher than the set temperature and the temperature of the refrigerant is a predetermined temperature or less. a cab; an air conditioning unit having a capacitor, a compressor, an evaporator, a blower fan, and an air conditioning duct, the compressor connected to the capacitor, the evaporator connected to the capacitor and the compressor, the blower fan configured to blow a wind to the evaporator, the air conditioning duct communicating from the evaporator to inside the cab; a cooling fan configured to cool the capacitor; an air conditioning switch configured to receive operation or non-operation of the compressor; a temperature setting section configured to set a set temperature inside the cab; a radiator configured to cool a refrigerant which circulates in an engine; a pipe connected to the radiator, the pipe configured to flow the refrigerant; and a hydraulic pump configured to drive the cooling fan; wherein the hydraulic pump has a swash plate for adjusting an amount of oil which is sent to the cooling fan; characterized by a room temperature sensor configured to detect a room temperature inside the cab; and a controller configured to adjust so that a rotation amount of the cooling fan is maintained at a predetermined rotation amount or more when operation is selected in the air conditioning switch and the room temperature inside the cab is higher than the set temperature wherein a portion of the pipe is arranged inside an air conditioning duct, and wherein the controller is further configured to set an angle of the swash plate of the hydraulic pump to a minimum when non-operation is selected in the air conditioning switch or when the room temperature inside the cab is not higher than the set temperature and the temperature of the refrigerant is a predetermined temperature or less.