A system for exchanging energy with a ground is disclosed. In at least one embodiment, it includes an elongate ground bore, a flexible sealing device for separating sections of the bore and extending inside and generally all along the bore and being closed at its ends, wherein the flexible sealing device, in use, is filled with a liquid whereby the flexible sealing device is pressed against walls of the bore. The system further includes at least a first duct, and heat recovery device, wherein said the at least a first duct is operatively connected to the heat recovery device and extends into the flexible sealing device. At least one sealing device is provided at the flexible sealing device at a predefined level along the bore, which at least one sealing device is adapted to seal at the level between the flexible sealing device and the bore.