BERLIN (AP) 鈥 U.S. President Joe Biden said it's important for Ukraine's Western allies to 鈥渟ustain our resolve鈥 in supporting the country as he met Friday with European partners, with the upcoming U.S. presidential election casting a long shadow over his visit to Germany.

Biden met Chancellor Olaf Scholz of Germany, Ukraine's second-biggest military supplier after the U.S. They were joined by French President Emmanuel Macron and British Prime Minister Keir Starmer for discussions that also addressed the .

With the election just weeks away and the race extremely tight, there are worries that a victory for , the Republican nominee, could upset the relationships that Biden is hoping to pass on to Vice President , the Democratic nominee.

Trump has an appetite for on key U.S. security partners. He has expressed , refusing to say during a presidential debate if he wants the U.S. ally to win its war against Russia. He鈥檚 about coming to the defense of NATO members if they come under attack.

The gathered leaders never uttered Trump's name in public, yet their remarks often hinted at the possibility that he could withdraw support from Ukraine and scorn global alliances that Biden and his counterparts view as critical.

Biden in an exchange with reporters following his meeting with the three European leaders suggested that the U.S. election was discussed in the private talks. Asked if the leaders were worried about the presidential race, Biden responded tersely, 鈥淭hey're interested.鈥

Earlier in the day Biden emphasized the need to support Ukraine.

鈥淎s Ukraine faces a tough winter, we must 鈥 we must 鈥 sustain our resolve, our effort and our support,鈥 Biden said.

Scholz said that 鈥渨e will stand beside Ukraine as long as it is necessary,鈥 pointing to a planned $50 billion funded by interest on profits from frozen Russian assets.

鈥淥ur position is clear: We are supporting Ukraine as strongly as possible,鈥 he added. 鈥淎t the same time, we are taking care that NATO does not become a party to the war so that this war doesn't culminate in an even bigger catastrophe.鈥

Scholz has indicated that he's skeptical about aspects of a drawn up by Ukrainian President Volodymyr Zelenskyy, and says he will stand by his refusal to supply Taurus long-range cruise missiles to Kyiv.

Biden is also opposed to loosening restrictions on letting Ukraine use western weapons to strike deeper into Russia, but did not shut the door on the issue.

鈥淚n foreign policy, there鈥檚 never a 鈥榥ever will I change my mind,'鈥 Biden said. 鈥淩ight now there is no consensus on long-range weapons."

Biden didn鈥檛 want his term to end without visiting Berlin, after having been to other key allies such as Japan, South Korea, France, India, the U.K., Poland and Ukraine. The visit was a quick one, with Biden spending about 20 hours on the ground in Berlin.

Concerns about what might come next were reflected as Biden received the highest class of Germany鈥檚 Order of Merit, which was also bestowed on former U.S. President in recognition of his support for German reunification.

German President Frank-Walter Steinmeier said the friendship with the U.S. is 鈥渁nd will always be existentially important鈥 for Germany, but there have always been 鈥渢imes of proximity and greater distance.鈥

鈥淓ven recently, just a handful of years ago, the distance had grown so wide that we almost lost each other,鈥 Steinmeier said, in an reference to tense relations during Trump鈥檚 earlier presidency. He said Biden 鈥渞estored Europe's hope in the trans-Atlantic alliance literally overnight.鈥

Recalling the 鈥渨ide sweep of history鈥 he has seen in his 81 years, Biden said, 鈥渨e should never underestimate the power of democracy, never underestimate the value of alliances.鈥

As he met Scholz, Biden said he was 鈥済rateful for Germany鈥檚 cooperation in holding Iran accountable for destabilizing policies, including providing missiles and drones to Russia to use against Ukraine.鈥 He pointed to new against Iran's leading airlines and said that 鈥渢his coordination is going to have to continue.鈥

Biden reiterated his call for Israel to pursue peace after the killing of 鈥 which he described as 鈥渁 moment of justice.鈥

鈥淚 told the prime minister of Israel yesterday, let鈥檚 also make this moment an opportunity to seek a path to peace, a better future in Gaza without Hamas,鈥 he said.

Biden said he and the European leaders discussed the way ahead following the killing of Sinwar. He suggested that negotiating a cease-fire deal between Israel and Hezbollah could be easier than forging one between Israel and Hamas.

鈥淲e think that there is a possibility of working for a ceasefire in Lebanon and it鈥檚 going to be harder in Gaza,鈥 Biden said. 鈥淏ut we agree there has to be an outcome of what happens the day after.鈥

Biden declined to say whether Israeli Prime Minister Benjamin Netanyahu gave him assurance in their Thursday phone call that the Israelis are ready to get back to negotiations on the stalled cease-fire deals.

鈥淲e鈥檙e in the middle of discussions about that,鈥 Biden said. 鈥淚鈥檓 not going to get into that.鈥

Trump has said his approach will help the U.S. economy and prevent foreign countries from taking advantage of the United States. He maintains that if he were still president, Russia would never have invaded Ukraine in 2022 and Hamas would never have attacked Israel in 2023.

鈥淚 will end the war in Ukraine, stop the chaos in the Middle East, and prevent World War III,鈥 he said at a recent rally in Georgia.

Harris, for her part, has voiced strong backing for Ukraine and tracks with Biden on support for Israel, while placing particular emphasis on the need to relieve the suffering of Palestinian civilians whose lives have been upended by the Hamas-Israel war.

AP writer Aamer Madhani in Washington contributed reporting.

The 好色tv Press. All rights reserved.