Dubois joined the Dutch Army as a medical officer, and used spare time from his medical duties to search for fossils, first in Sumatra and then in Java.


In 1894 Dubois published a description of his fossils, naming them Pithecanthropus erectus (now Home erectus), describing it as neither ape nor human, but something intermediate. In 1895 he returned to Europe to promote the fossil and his interpretation. A few scientists enthusiastically endorsed Dubois' work, but most disagreed with his interpretation. Many scientists pointed out similarities between the Java Man skullcap and Neandertal fossils.
Around 1900 Dubois ceased to discuss Java Man, and hid the fossils in his home while he moved on to other research topics. geology and paleontology. It was not until 1923 that Dubois, under pressure from scientists, once again allowed access to the Java Man fossils. That and the discovery of similar fossils caused it to once again become a topic of debate.

Skull cap (Trinil 2, holotype of Home erectus) from HERE.
The first two Peking Man skulls were found in 1929 and three more in 1936. In the late 1930s, other pithecanthropine fossils were found in Java at Sangiran. It was clear to everyone else that all these fossils were very similar to Dubois' original find, but Dubois fiercely resisted this idea.
Info from Here, Here and HERE. Dubois from HERE.