President Barack Obama is warning Iran that the U.S. will "do what is necessary" to prevent the Tehran from acquiring nuclear weapons.

Israeli Prime Minister Benjamin Netanyahu (L) welcomes President Barack Obama to the prime minister's residence (Avi Ohayon/GPO via Getty Images)

Obama spoke after meeting Wednesday in Jerusalem with Israeli Prime Minister Benjamin Netanyahu.

The West says Iran's program is aimed at developing nuclear weapons technology. Iran says its program is for peaceful purposes.

Iran has defied the international community's urging that it consent to nuclear inspections.

Obama arrived in Israel on Wednesday for his first visit as president to the Mideast ally.

Obama skeptical of Assad claims on chem weapons

President Barack Obama says he's deeply skeptical of claims by Syrian President Bashar Assad's regime that rebel forces have used chemical weapons.

Both the Assad regime and Syrian rebels have accused each other of using chemical weapons in an attack on Tuesday.

Obama says the U.S. is investigating whether any chemical weapons were used. He says that would be a game-changer that would cross a red line for the United States.

Obama says the U.S. policy not to intervene militarily or arm Syrian rebels is based on his desire to solve the problem as a global community.

Obama's remarks came at a joint press conference Wednesday in Jerusalem with Israeli Prime Minister Benjamin Netanyahu.

(Copyright 2013 The Associated Press. All Rights Reserved)