While installing Android Studio, it installed Jayatana as a dependency. Now when I ran java, it showed me a message as:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
I uninstalled the jayatana package, but the message didn't disappear. So I unset the environment variable using
unset JAVA_TOOL_OPTIONS but this only stays for a bash session. If I close and reopen the shell, the variable is back. I have looked into the .bashrc, .profile, /etc/profile, /etc/bash.bashrc files and I couldn't find this variable defined anywhere.
Is there a way to permanently unset this environment variable? Or to find where it is defined?