Germany clinched the last place in the 12-nation line-up at the Olympic Games men's basketball tournament on Sunday with a 96-82 win over Puerto Rico.
Greece and Croatia had qualified on Saturday and, with Germany, will join Angola, Argentina, Australia, hosts China, Iran, Lithuania, Russia, Spain and the United States in the Beijing tournament.
Dirk Nowitzki starred for Germany with 32 points on Sunday to lead his team to a fifth Olympics place but first since 1992.
They were also aided by the efforts of 2.13m Los Angeles Clippers centre Chris Kaman who, courtesy of his great-grandparents, became a naturalised German citizen at the start of July.
Despite not speaking a world of German, Kaman played a key role on Sunday scoring 10 points with 12 rebounds.
At the Games in Beijing, the 12 teams will be split into two groups of two.
In Group A, one of Germany, Greece or Croatia will be drawn alongside Argentina, Australia, Iran, Lithuania and Russia.
Group B will see the other two join Angola, China, Spain, Spain and the United States.
In Beijing, the United States will be looking for their first gold medal in the event since Sydney in 2000.
Since that time, their much-vaunted collection of NBA stars have suffered a series of setbacks with a humiliating sixth place at the 2002 world championships in Indianapolis and a third place finish at the 2004 Athens Olympics.
The United States were also third at the 2006 world championships in Japan.
Defending Olympic champions Argentina, world champions Spain and Greece, who beat the Americans in the semi-finals of the last world championship will also be amongst the gold medal favourites.