The Japanese High Command carefully discussed this and came up with the conclusion that the Dutch East Indies would be the best place to gain resources. But they knew that an attack on the Dutch East Indies would probably bring the US into the war. So they had to find a way to prevent the US from fighting with them until they conquered the Dutch East Indies. That's when they planned Pearl Harbor. The goal of Pearl Harbor was to disable the American fleet for a few months to give them enough time to conquer the Dutch East Indies and to absorb its resources to finance their war in China and the US once the US' navy was rebuilt.
The Japanese were tired of negotiations with the United States. They wanted to continue their expansion within Asia but the United States had placed an extremely restrictive embargo on Japan in the hopes of curbing Japan's aggression. Negotiations to solve their differences hadn't been going well.
Rather than giving in to U.S. demands, the Japanese decided to launch a surprise attack against the United States in an attempt to destroy the United States' naval power even before an official announcement of war was given. The Japanese practiced and prepared carefully for their attack on Pearl Harbor. They knew their plan was extremely risky. The probability of success depended heavily on complete surprise.
On November 26, 1941, the Japanese attack force, led by Vice Admiral Chuichi Nagumo, left Etorofu Island in the Kurils (located northeast of Japan) and began its 3,000-mile journey across the Pacific Ocean. Sneaking six