Tho Truong Nguyen (36) referred to a "head shot" in a message, and investigating gardaí recovered a replica air pistol in a search of his home, a court was told.
The case against him was adjourned when he appeared in Dublin District Court.
The accused, with an address at a flat at Upper Rathmines Road, is charged with threatening to kill or cause serious harm to the alleged victim.
The offence is alleged to have happened at that address.
He has not yet entered a plea to the charge, which is under the Non-Fatal Offences Against the Person Act.
A garda sergeant told Judge Treasa Kelly the Director of Public Prosecutions consented to the case being dealt with summarily in the district court, subject to the issue of jurisdiction being considered.
The judge asked to hear an outline of the prosecution's case. The sergeant said it would be alleged the accused sent a number of threatening text messages to the man.
One of them allegedly stated "my gun is fresh" and there was also a reference in the messages to a "head shot", the court heard. A search was carried out at the accused's residence and a replica air pistol was handed over to gardaí, the sergeant said.
The accused was detained and interviewed by gardaí. It was alleged that the incident arose over a "civil dispute over rent", the sergeant added.
Judge Kelly accepted jurisdiction after hearing the summary. This means the case can be heard in the district court instead of being sent forward to the circuit court.
She ordered disclosure of prosecution statements to the defence and adjourned the case to a date later this month for the accused to indicate how he intends to plead.
Defence solicitor Kate McGhee said Mr Nguyen consented to the adjournment.
The accused was remanded on continuing bail.