install java for kafka code example Example: do you need java installed for kafka sudo apt-get install openjdk-8-jdkmixed