According to one dictionary, the American slang term "joe" for coffee originated in WWI, and had its origins in a then popular song - which would probably be considered racist these days - called "Old Black Joe" by Stephen Foster, a renowned song-writer. The term possibly caught on because it had roughly the same sound as another slang word for coffee, "java", after the place much coffee came from in the 19th century. Perhaps "java" was slang for white coffee, and "joe" for black.