sudo apt update && sudo apt dist-upgrade -y
sudo apt install -y default-jdk
javac ./NameOfProgram.java
java NameOfProgram
loading the latest checkstyle for java:
https://github.com/checkstyle/checkstyle/releases
wget https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.13.0/checkstyle-10.13.0-all.jar
mkdir ~/scripts
cp ./checkstyle-10.13.0-all.jar ~/scripts/checkstyle.jar
wget https://raw.githubusercontent.com/Mr-Coxall/dot_files/main/mr-coxall_checks.xml
cp ./mr-coxall_checks.xml ~/scripts/
rm checkstyle-10.3.3-all.jar
rm mr-coxall_checks.xml
to run the linter
java -jar ~/scripts/checkstyle.jar -c ~/scripts/mr-coxall_checks.xml *.java