State TV carried footage of the launch of the Khorramshahr missile, which was first displayed at a high-profile military parade in Tehran on Friday.
"Whether you like it or not, we are going to strengthen our military capabilities which are necessary for deterrence", Rouhani said in a speech broadcast live on state television.
On Friday, the Iranian armed forces commemorated the 1980-1988 war with Iraq by holding a parade in which Iran's most advanced military power and abilities were showcased.
Iran has tested a new ballistic missile capable of hitting targets 1,200 miles away, according to state media.
Natural disaster of magnitude 3.4 detected near North Korea's nuclear test site
Vessels and aircraft that have visited North Korea in the past 180 days are prohibited from entering USA under the new sanctions . North Korea has said it intends to build a missile capable of striking all parts of the United States with a nuclear bomb.
The test-firing of the Khorramshahr missile, which Iran said could carry several warheads, is likely to raise concerns in Washington.
"We can not let a murderous regime continue these destabilizing activities while building risky missiles, and we can not abide by an agreement if it provides cover for the eventual construction of a nuclear program", Trump said, while also referring to the Iran nuclear deal as "an embarrassment" to the U.S.
Russian Foreign Minister Sergei Lavrov said on Thursday that the U.S. imposition of unilateral sanctions on Iran was "illegitimate and undermines the collective nature of global efforts".
Iran says it designed, developed and built the missile internally.
Gareth Barry: 'Roberto Martinez told me I could play until 40'
"We were interested in him yes, when he moved from Aston Villa to Manchester City ", he added. So it may be tough to beat and the longer I can go it will be tougher as well.
Rouhani said his first request from the country's minister of education in his recently-inaugurated cabinet had been to help students learn a profession within the 12-year-long school process so they can begin working in the society, should they choose not to pursue academic education.
Last week, Netanyahu met with President Donald Trump to discuss 2015 nuclear agreement as well as Iran's regional behavior.
"Imagine what would happen if Iran were to acquire nuclear weapons", he said.
Trump faces a mid-October deadline to certify to Congress whether or not he believes Iran has been in compliance with the nuclear agreement.
Swaraj launches veiled attack on Pak at UNGA
She added that India had produced scholars, doctors and engineers but the Asian neighbour Pakistan produced terrorists. Abbasi during his speech in United Nations assembly on Friday had mentioned Kashmir 17 times.
"We can not let a murderous regime continue these destabilizing activities while building risky missiles, and we can not abide by an agreement if it provides cover for the eventual construction of a nuclear program", Trump said. Thus far, the United Nations nuclear watchdog and the US State Department have reported that Tehran has complied with the terms of the nuclear deal.