Complying with the court orders, police on Saturday slapped restraining orders on the parents of the boy as well as those of the girl and warned them not to go ahead with the child marriage.
"Prakash filed a complaint with the chief judicial magistrate in Jodhpur on Friday that his parents were forcing him to marry a girl. The girl was 16 years old. The boy said that as both of them were minors, the marriage was illegal," said a police officer.
Prakash is a resident of Maderna Colony in Jodhpur city.
The officer added that the court took cognizance of the complaint and asked police to serve restraining orders against the parents of the girl and the boy.
"Acting on the court's directions, we have legally restrained the parents from organising the marriage that was to take place July 22," said the officer.
"As per the orders, if the parents still forced the children to get married, they will be booked under sections of the Prohibition of Child Marriage Act and arrested," the officer added.