install jave pi code example Example 1: java cmd install raspbian sudo apt-get install default-jdk Example 2: install java 11 jdk raspberry pi java --version