I'm trying to install lombok in the Spring Tool Suite 4 ide which is in the /opt folder on Ubuntu. The command: java -jar lombok.jar
does not work because the opt folder requires privileges.
I tried using the command suggested by the installation software: sudo java -jar lombok.jar
I get the result:
sudo: java: command not found
Note: I have the SDKMAN software development kit manager installed to manage java versions.