Indonesian officials have launched a search for a passenger ship carrying more than 240 after it lost contact in the Java Sea during bad weather.