Japan recorded a trade deficit in June, according to government data released Wednesday, as the higher price of oil imports helped cause the second straight month of red…