U.S. President Donald Trump dismissed any diplomatic negotiations with North Korea on Wednesday, saying "talking is not the answer," one day after Pyongyang fired a ballistic missile over Japan and drew international condemnation.

>> North Korea-Trump crisis: Good news for Iran, bad for Mideast ■Trump must not conflate North Korea with Iran >>

"The U.S. has been talking to North Korea, and paying them extortion money, for 25 years. Talking is not the answer!" Trump tweeted.

Following Tuesday's launch, which marks a sharp escalation in tensions over North Korea's defiance of UN sanctions, Trump said that when it comes to Washington's response to Pyongyang, "all options are on the table."

"Threatening and destabilizing actions only increase the North Korean regime's isolation in the region and among all nations of the world. All options are on the table," Trump said in a statement.

The last North Korean projectile to fly over Japan was in 2009. The United States, Japan and South Korea considered that launch to have been a ballistic missile test while North Korea said it was a rocket carrying a communications satellite into orbit.