United States President Barack Obama said on Wednesday that the Palestinians should negotiate with the Israelis and not appeal to the United Nations for statehood.

"I strongly believe that for Palestinians to take the United Nations route rather than the path of sitting down and talking with the Israelis is a mistake," Obama said in a joint press conference with British Prime Minister David Cameron in London.

"The United Nations can achieve a lot of important work, what it is not going to be able to do is deliver a Palestinian state," he said. "The only way to see a Palestinian state is if Palestinians and Israelis agree on a just peace."

Obama also reassured that he was confident a two-state solution for Israel and the Palestinians was achievable.

"My goal, as I set out in a speech I gave last week, is a Jewish state of Israel that is safe and secure and recognized by its neighbors and a sovereign state of Palestine in which the Palestinian people are able to determine their own fate and their own future," Obama said. "I am confident that can be achieved."