I've installed Jenkins on a Debian system using the instructions here:
https://www.jenkins.io/doc/book/installing/linux/#debianubuntu
It works fine, but gives a warning in the log on every startup:
"Java is not in the PATH nor configured with the javaPath setting, Jenkins will try to guess where is Java,this guess will be remove in the future"
What's the correct way to fix this warning?
I'm assuming adding something to /etc/default/jenkins, but I'm not 100% sure exactly what.
(tagging Ubuntu too, as the issue/fix should be the same there, as the Jenkins packages are common)