I am trying to install to ktlint. I did it with the following line of code on present on their website
curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.39.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
but when i tried ktlint --version
i got an error saying usr/local/bin/ktlint: 3: exec: java: not found
Can someone please help me fix this
Thank you :)