Don't forget that in the years leading up to the start of WW2, France was Germany's largest trading partner and the United States was Japan's biggest trading partner.
What is particularly interesting is that in the years leading up to Pearl Harbor, the Japanese were buying all the U.S. scrap metal, iron, etc. Little did we know they were using that scrap to build the Japanese Navy, Zeros, etc.