In Java, coffee plantation began in 17th century. The Dutch exported the produce to the West and later it became their favorite.
People started calling their Java coffee “java”, then the word was (and still is) used to refer to any coffee. Later on, “java” inspired the name of a computer programming.
It’s interesting to see how far a word can gather a new meaning and association. I didn’t know about this coffee relation until a few years ago. I thought the similar naming was accidental.
The picture above, by the way, is a glass of “crashed java”; a very literal translation for kopi tubruk.
It is named so because one has to crash (a metaphor for pouring) boiling water into ground coffee.
Image credit: Mo Riza