Kublai succeeded in building a powerful empire, created an academy, offices, trade ports and canals and sponsored science and the arts. The record of the Mongols lists 20,166 public schools created during Kublai's reign. Having achieved real or nominal dominion over much of Eurasia, and having successfully conquered China, Kublai was in a position to look beyond China. However, Kublai's costly invasions of Vietnam (1258), Sakhalin (1264), Burma (1277), Champa (1282), and Vietnam again (1285) secured only the vassal status of those countries. Mongol invasions of Japan (1274 and 1281), the third invasion of Vietnam (1287–8), and the invasion of Java (1293) failed.