Forced to spend the next three years on Java he used the time to make the first thorough botanical investigation of the island, which had not previously been visited by naturalists except briefly by Carl Peter Thunberg.