The runaway electrons have been measured by hard x-ray detectors and soft x-ray array in the J-TEXT tokamak. The hard x-ray radiations in the energy ranges of 0.5-5 MeV are measured by two NaI detectors. The flux of lost runaway electrons can be obtained routinely. The soft x-ray array diagnostics are used to monitor the runaway beam generated in disruptions since the soft x-ray is dominated by the interaction between runaway electrons and metallic impurities inside the plasma. With the aid of soft x-ray array, runaway electron beam has been detected directly during the formation of runaway current plateau following the disruptions.