jEnv is a command line tool to help you forget how to set JAVA_HOME environment variable.
It sounds great! However, there is no usage for fish shell.
But I found this usage: https://github.com/jenv/jenv#1-getting-started
And there is usage for fish shell, but is not tested.